@mhmo91/schmancy 0.2.203 → 0.2.206

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 (281) hide show
  1. package/dist/{animated-text-ogUuAHr-.cjs → animated-text-CwhCnj-Z.cjs} +2 -2
  2. package/dist/{animated-text-ogUuAHr-.cjs.map → animated-text-CwhCnj-Z.cjs.map} +1 -1
  3. package/dist/{animated-text-C6NhnKME.js → animated-text-GWb1KFIg.js} +3 -3
  4. package/dist/{animated-text-C6NhnKME.js.map → animated-text-GWb1KFIg.js.map} +1 -1
  5. package/dist/animated-text.cjs +1 -1
  6. package/dist/animated-text.js +1 -1
  7. package/dist/area.cjs +1 -1
  8. package/dist/area.component-A1Kfuzig.cjs +8 -0
  9. package/dist/area.component-A1Kfuzig.cjs.map +1 -0
  10. package/dist/area.component-knOwkdC5.js +275 -0
  11. package/dist/area.component-knOwkdC5.js.map +1 -0
  12. package/dist/area.js +1 -1
  13. package/dist/{autocomplete-Dq1Pxspz.js → autocomplete-CY5UhcZ0.js} +3 -3
  14. package/dist/{autocomplete-Dq1Pxspz.js.map → autocomplete-CY5UhcZ0.js.map} +1 -1
  15. package/dist/{autocomplete-z9uOvooM.cjs → autocomplete-Lrf6Xs9H.cjs} +2 -2
  16. package/dist/{autocomplete-z9uOvooM.cjs.map → autocomplete-Lrf6Xs9H.cjs.map} +1 -1
  17. package/dist/autocomplete.cjs +1 -1
  18. package/dist/autocomplete.js +1 -1
  19. package/dist/{avatar-Cm9kPvQn.cjs → avatar-BgvBt5hz.cjs} +2 -2
  20. package/dist/{avatar-Cm9kPvQn.cjs.map → avatar-BgvBt5hz.cjs.map} +1 -1
  21. package/dist/{avatar-VYno4W6t.js → avatar-qAcKSc1e.js} +43 -43
  22. package/dist/{avatar-VYno4W6t.js.map → avatar-qAcKSc1e.js.map} +1 -1
  23. package/dist/badge.cjs +1 -1
  24. package/dist/badge.js +1 -1
  25. package/dist/{boat-CgpGIvFX.js → boat-BB6LmYdx.js} +3 -3
  26. package/dist/{boat-CgpGIvFX.js.map → boat-BB6LmYdx.js.map} +1 -1
  27. package/dist/{boat-BOo_pv2K.cjs → boat-CJ9Tg8fB.cjs} +2 -2
  28. package/dist/{boat-BOo_pv2K.cjs.map → boat-CJ9Tg8fB.cjs.map} +1 -1
  29. package/dist/boat.cjs +1 -1
  30. package/dist/boat.js +1 -1
  31. package/dist/busy.cjs +1 -1
  32. package/dist/busy.js +1 -1
  33. package/dist/button.cjs +1 -1
  34. package/dist/button.js +1 -1
  35. package/dist/card.cjs +1 -1
  36. package/dist/card.js +1 -1
  37. package/dist/{checkbox-BTfPNnQb.cjs → checkbox-B7DRyBjt.cjs} +2 -2
  38. package/dist/{checkbox-BTfPNnQb.cjs.map → checkbox-B7DRyBjt.cjs.map} +1 -1
  39. package/dist/{checkbox-DPGAcnM6.js → checkbox-BuOkiA0j.js} +2 -2
  40. package/dist/{checkbox-DPGAcnM6.js.map → checkbox-BuOkiA0j.js.map} +1 -1
  41. package/dist/checkbox.cjs +1 -1
  42. package/dist/checkbox.js +1 -1
  43. package/dist/{chips-lV1yS98U.js → chips-DyoQtkqC.js} +3 -3
  44. package/dist/{chips-lV1yS98U.js.map → chips-DyoQtkqC.js.map} +1 -1
  45. package/dist/{chips-cwc7cbIb.cjs → chips-w7_Vv_P1.cjs} +2 -2
  46. package/dist/{chips-cwc7cbIb.cjs.map → chips-w7_Vv_P1.cjs.map} +1 -1
  47. package/dist/chips.cjs +1 -1
  48. package/dist/chips.js +1 -1
  49. package/dist/{circular-progress-D_PctKnQ.js → circular-progress-B7VSuyu1.js} +3 -3
  50. package/dist/{circular-progress-D_PctKnQ.js.map → circular-progress-B7VSuyu1.js.map} +1 -1
  51. package/dist/{circular-progress-X9P3e4Eu.cjs → circular-progress-BT_cAg-m.cjs} +2 -2
  52. package/dist/{circular-progress-X9P3e4Eu.cjs.map → circular-progress-BT_cAg-m.cjs.map} +1 -1
  53. package/dist/circular-progress.cjs +1 -1
  54. package/dist/circular-progress.js +1 -1
  55. package/dist/code-highlight.cjs +1 -1
  56. package/dist/code-highlight.js +1 -1
  57. package/dist/code-preview-BsEGjZB8.cjs +160 -0
  58. package/dist/code-preview-BsEGjZB8.cjs.map +1 -0
  59. package/dist/code-preview-WdmERMCO.js +916 -0
  60. package/dist/code-preview-WdmERMCO.js.map +1 -0
  61. package/dist/components.cjs +1 -1
  62. package/dist/components.js +1 -1
  63. package/dist/content-drawer.cjs +1 -1
  64. package/dist/content-drawer.js +1 -1
  65. package/dist/{date-range-DdLg5GYf.js → date-range-DtrUQ__m.js} +3 -3
  66. package/dist/{date-range-DdLg5GYf.js.map → date-range-DtrUQ__m.js.map} +1 -1
  67. package/dist/{date-range-UDe-qzrM.cjs → date-range-ooOpxbeQ.cjs} +2 -2
  68. package/dist/{date-range-UDe-qzrM.cjs.map → date-range-ooOpxbeQ.cjs.map} +1 -1
  69. package/dist/date-range.cjs +1 -1
  70. package/dist/date-range.js +1 -1
  71. package/dist/{delay-Bdt1Z39R.cjs → delay-Bi7N7rfi.cjs} +2 -2
  72. package/dist/{delay-Bdt1Z39R.cjs.map → delay-Bi7N7rfi.cjs.map} +1 -1
  73. package/dist/{delay-C9NokNv8.js → delay-CpadwhcQ.js} +2 -2
  74. package/dist/{delay-C9NokNv8.js.map → delay-CpadwhcQ.js.map} +1 -1
  75. package/dist/delay.cjs +1 -1
  76. package/dist/delay.js +1 -1
  77. package/dist/{dialog-content-BR9WwPo4.cjs → dialog-content-C-hz1uOo.cjs} +3 -3
  78. package/dist/dialog-content-C-hz1uOo.cjs.map +1 -0
  79. package/dist/{dialog-content-Cbg_9SMr.js → dialog-content-DHu6t4FZ.js} +4 -4
  80. package/dist/dialog-content-DHu6t4FZ.js.map +1 -0
  81. package/dist/dialog.cjs +1 -1
  82. package/dist/dialog.js +1 -1
  83. package/dist/{divider-BEakpSXw.cjs → divider-CMaphWTG.cjs} +2 -2
  84. package/dist/{divider-BEakpSXw.cjs.map → divider-CMaphWTG.cjs.map} +1 -1
  85. package/dist/{divider-BMdGT621.js → divider-_-MZUPzR.js} +3 -3
  86. package/dist/{divider-BMdGT621.js.map → divider-_-MZUPzR.js.map} +1 -1
  87. package/dist/divider.cjs +1 -1
  88. package/dist/divider.js +1 -1
  89. package/dist/{dropdown-content-DQD8TJaD.js → dropdown-content-DMhWEC5P.js} +3 -3
  90. package/dist/{dropdown-content-DQD8TJaD.js.map → dropdown-content-DMhWEC5P.js.map} +1 -1
  91. package/dist/{dropdown-content-BtocjSsb.cjs → dropdown-content-TrKH6CPO.cjs} +2 -2
  92. package/dist/{dropdown-content-BtocjSsb.cjs.map → dropdown-content-TrKH6CPO.cjs.map} +1 -1
  93. package/dist/dropdown.cjs +1 -1
  94. package/dist/dropdown.js +1 -1
  95. package/dist/extra.cjs +1 -1
  96. package/dist/extra.js +1 -1
  97. package/dist/{flex-Dmn8v3mn.cjs → flex-CaC7hDYr.cjs} +2 -2
  98. package/dist/{flex-Dmn8v3mn.cjs.map → flex-CaC7hDYr.cjs.map} +1 -1
  99. package/dist/{flex-Dw702rmj.js → flex-Dr8l_bpn.js} +2 -2
  100. package/dist/{flex-Dw702rmj.js.map → flex-Dr8l_bpn.js.map} +1 -1
  101. package/dist/{form-D_AZUEHR.js → form-CWRGjc2L.js} +2 -2
  102. package/dist/{form-D_AZUEHR.js.map → form-CWRGjc2L.js.map} +1 -1
  103. package/dist/{form-BrDcpWmJ.cjs → form-DXe2MLM6.cjs} +2 -2
  104. package/dist/{form-BrDcpWmJ.cjs.map → form-DXe2MLM6.cjs.map} +1 -1
  105. package/dist/form.cjs +1 -1
  106. package/dist/form.js +1 -1
  107. package/dist/{icon-Be5FlbNd.js → icon-BhA1UDKp.js} +2 -2
  108. package/dist/{icon-Be5FlbNd.js.map → icon-BhA1UDKp.js.map} +1 -1
  109. package/dist/{icon-Cj1u0n_a.cjs → icon-Cpm7fcMG.cjs} +2 -2
  110. package/dist/{icon-Cj1u0n_a.cjs.map → icon-Cpm7fcMG.cjs.map} +1 -1
  111. package/dist/{icon-button-DUXi9CUe.js → icon-button-DRJRp7NW.js} +3 -3
  112. package/dist/{icon-button-DUXi9CUe.js.map → icon-button-DRJRp7NW.js.map} +1 -1
  113. package/dist/{icon-button-BC1rxqaG.cjs → icon-button-DuaFGduO.cjs} +2 -2
  114. package/dist/{icon-button-BC1rxqaG.cjs.map → icon-button-DuaFGduO.cjs.map} +1 -1
  115. package/dist/icons.cjs +1 -1
  116. package/dist/icons.js +1 -1
  117. package/dist/index.cjs +1 -1
  118. package/dist/index.js +41 -41
  119. package/dist/{input-BSOQZoPV.cjs → input-Cm1CnbuH.cjs} +2 -2
  120. package/dist/{input-BSOQZoPV.cjs.map → input-Cm1CnbuH.cjs.map} +1 -1
  121. package/dist/{input-DwB1S4YZ.js → input-D8ZNzDHV.js} +2 -2
  122. package/dist/{input-DwB1S4YZ.js.map → input-D8ZNzDHV.js.map} +1 -1
  123. package/dist/input.cjs +1 -1
  124. package/dist/input.js +1 -1
  125. package/dist/layout.cjs +1 -1
  126. package/dist/layout.js +1 -1
  127. package/dist/{list-BG2rz5PS.cjs → list-DGcdO8kB.cjs} +2 -2
  128. package/dist/{list-BG2rz5PS.cjs.map → list-DGcdO8kB.cjs.map} +1 -1
  129. package/dist/{list-B-HxDXEd.js → list-oTKIr7PQ.js} +2 -2
  130. package/dist/{list-B-HxDXEd.js.map → list-oTKIr7PQ.js.map} +1 -1
  131. package/dist/list.cjs +1 -1
  132. package/dist/list.js +1 -1
  133. package/dist/{litElement.mixin-ELpkmWiH.cjs → litElement.mixin-9Gop8K6U.cjs} +2 -2
  134. package/dist/{litElement.mixin-ELpkmWiH.cjs.map → litElement.mixin-9Gop8K6U.cjs.map} +1 -1
  135. package/dist/{litElement.mixin-Bo7dfT3z.js → litElement.mixin-DgPgTgtr.js} +2 -2
  136. package/dist/{litElement.mixin-Bo7dfT3z.js.map → litElement.mixin-DgPgTgtr.js.map} +1 -1
  137. package/dist/{menu-ACoDjBeN.js → menu-DENXkCTG.js} +3 -3
  138. package/dist/{menu-ACoDjBeN.js.map → menu-DENXkCTG.js.map} +1 -1
  139. package/dist/{menu-8hKcVCgl.cjs → menu-DrqS9xPK.cjs} +2 -2
  140. package/dist/{menu-8hKcVCgl.cjs.map → menu-DrqS9xPK.cjs.map} +1 -1
  141. package/dist/menu.cjs +1 -1
  142. package/dist/menu.js +1 -1
  143. package/dist/nav-drawer.cjs +1 -1
  144. package/dist/nav-drawer.js +1 -1
  145. package/dist/{notification-service-NA_EhllE.js → notification-service-B9B2SOMf.js} +3 -3
  146. package/dist/{notification-service-NA_EhllE.js.map → notification-service-B9B2SOMf.js.map} +1 -1
  147. package/dist/{notification-service-pD7XLnQI.cjs → notification-service-DL1fq8hm.cjs} +2 -2
  148. package/dist/{notification-service-pD7XLnQI.cjs.map → notification-service-DL1fq8hm.cjs.map} +1 -1
  149. package/dist/notification.cjs +1 -1
  150. package/dist/notification.js +1 -1
  151. package/dist/{option-DsCPYfpI.js → option-D7hTrzgh.js} +2 -2
  152. package/dist/{option-DsCPYfpI.js.map → option-D7hTrzgh.js.map} +1 -1
  153. package/dist/{option-B3O-fzAa.cjs → option-x_gU_P71.cjs} +2 -2
  154. package/dist/{option-B3O-fzAa.cjs.map → option-x_gU_P71.cjs.map} +1 -1
  155. package/dist/option.cjs +1 -1
  156. package/dist/option.js +1 -1
  157. package/dist/{payment-card-form-DDwFPRF7.cjs → payment-card-form-AFtDtRfH.cjs} +2 -2
  158. package/dist/{payment-card-form-DDwFPRF7.cjs.map → payment-card-form-AFtDtRfH.cjs.map} +1 -1
  159. package/dist/{payment-card-form-DHBuFtC3.js → payment-card-form-D3hyDbdZ.js} +3 -3
  160. package/dist/{payment-card-form-DHBuFtC3.js.map → payment-card-form-D3hyDbdZ.js.map} +1 -1
  161. package/dist/{radio-button-CY_bJLYp.cjs → radio-button-DaLz4Z3S.cjs} +2 -2
  162. package/dist/{radio-button-CY_bJLYp.cjs.map → radio-button-DaLz4Z3S.cjs.map} +1 -1
  163. package/dist/{radio-button-CqIQF1OI.js → radio-button-ncZSGkqc.js} +2 -2
  164. package/dist/{radio-button-CqIQF1OI.js.map → radio-button-ncZSGkqc.js.map} +1 -1
  165. package/dist/radio-group.cjs +1 -1
  166. package/dist/radio-group.js +1 -1
  167. package/dist/{schmancy-steps-container-CmssPjCo.js → schmancy-steps-container-BMHLfmfG.js} +2 -2
  168. package/dist/{schmancy-steps-container-CmssPjCo.js.map → schmancy-steps-container-BMHLfmfG.js.map} +1 -1
  169. package/dist/{schmancy-steps-container-Dj5B_eS0.cjs → schmancy-steps-container-Oj0-kdzs.cjs} +2 -2
  170. package/dist/{schmancy-steps-container-Dj5B_eS0.cjs.map → schmancy-steps-container-Oj0-kdzs.cjs.map} +1 -1
  171. package/dist/{select-DPB6LNWA.js → select-CNfzjQc7.js} +3 -3
  172. package/dist/{select-DPB6LNWA.js.map → select-CNfzjQc7.js.map} +1 -1
  173. package/dist/{select-C5Gjb2st.cjs → select-kgqACG9u.cjs} +2 -2
  174. package/dist/{select-C5Gjb2st.cjs.map → select-kgqACG9u.cjs.map} +1 -1
  175. package/dist/select.cjs +1 -1
  176. package/dist/select.js +1 -1
  177. package/dist/{sheet-DdIdtcIT.cjs → sheet-8KVbmBT0.cjs} +2 -2
  178. package/dist/{sheet-DdIdtcIT.cjs.map → sheet-8KVbmBT0.cjs.map} +1 -1
  179. package/dist/{sheet-DgdFEafN.js → sheet-CWGztMJM.js} +3 -3
  180. package/dist/{sheet-DgdFEafN.js.map → sheet-CWGztMJM.js.map} +1 -1
  181. package/dist/sheet.cjs +1 -1
  182. package/dist/sheet.js +1 -1
  183. package/dist/{slider-BY7ZPg8k.cjs → slider-BTJK0M8p.cjs} +2 -2
  184. package/dist/{slider-BY7ZPg8k.cjs.map → slider-BTJK0M8p.cjs.map} +1 -1
  185. package/dist/{slider-BhjD0lK9.js → slider-BpGbCj5P.js} +3 -3
  186. package/dist/{slider-BhjD0lK9.js.map → slider-BpGbCj5P.js.map} +1 -1
  187. package/dist/slider.cjs +1 -1
  188. package/dist/slider.js +1 -1
  189. package/dist/{spinner-DqTOWFQD.js → spinner-CZEpYGDr.js} +3 -3
  190. package/dist/{spinner-DqTOWFQD.js.map → spinner-CZEpYGDr.js.map} +1 -1
  191. package/dist/{spinner-D_8I5QZd.cjs → spinner-o6SsnYml.cjs} +2 -2
  192. package/dist/{spinner-D_8I5QZd.cjs.map → spinner-o6SsnYml.cjs.map} +1 -1
  193. package/dist/steps.cjs +1 -1
  194. package/dist/steps.js +1 -1
  195. package/dist/{surface-Dw8305KR.js → surface-CULbYLWK.js} +2 -2
  196. package/dist/{surface-Dw8305KR.js.map → surface-CULbYLWK.js.map} +1 -1
  197. package/dist/{surface-D61K-ItN.cjs → surface-v1R6gg3O.cjs} +2 -2
  198. package/dist/{surface-D61K-ItN.cjs.map → surface-v1R6gg3O.cjs.map} +1 -1
  199. package/dist/surface.cjs +1 -1
  200. package/dist/surface.js +1 -1
  201. package/dist/{table-EfuHHTwt.cjs → table-C-bANOR2.cjs} +2 -2
  202. package/dist/{table-EfuHHTwt.cjs.map → table-C-bANOR2.cjs.map} +1 -1
  203. package/dist/{table-B3QFHVvN.js → table-DiyvbCo7.js} +2 -2
  204. package/dist/{table-B3QFHVvN.js.map → table-DiyvbCo7.js.map} +1 -1
  205. package/dist/table.cjs +1 -1
  206. package/dist/table.js +1 -1
  207. package/dist/{tabs-compatibility-C_AbeQZJ.cjs → tabs-compatibility-H_ztF6ET.cjs} +2 -2
  208. package/dist/{tabs-compatibility-C_AbeQZJ.cjs.map → tabs-compatibility-H_ztF6ET.cjs.map} +1 -1
  209. package/dist/{tabs-compatibility-BMuS5WrG.js → tabs-compatibility-gBgyoF-Q.js} +2 -2
  210. package/dist/{tabs-compatibility-BMuS5WrG.js.map → tabs-compatibility-gBgyoF-Q.js.map} +1 -1
  211. package/dist/tabs.cjs +1 -1
  212. package/dist/tabs.js +1 -1
  213. package/dist/tailwind.mixin-CBugs0NU.js +43 -0
  214. package/dist/{tailwind.mixin-DK3nrJs-.js.map → tailwind.mixin-CBugs0NU.js.map} +1 -1
  215. package/dist/tailwind.mixin-by-9p2wJ.cjs +2 -0
  216. package/dist/{tailwind.mixin-DUe4ADKX.cjs.map → tailwind.mixin-by-9p2wJ.cjs.map} +1 -1
  217. package/dist/teleport.cjs +1 -1
  218. package/dist/teleport.js +1 -1
  219. package/dist/{textarea-7h0HShQR.js → textarea-B1qCCWUj.js} +2 -2
  220. package/dist/{textarea-7h0HShQR.js.map → textarea-B1qCCWUj.js.map} +1 -1
  221. package/dist/{textarea-CD2XNMnM.cjs → textarea-uDNXN7E5.cjs} +2 -2
  222. package/dist/{textarea-CD2XNMnM.cjs.map → textarea-uDNXN7E5.cjs.map} +1 -1
  223. package/dist/textarea.cjs +1 -1
  224. package/dist/textarea.js +1 -1
  225. package/dist/{theme-button-VhAr3UYc.js → theme-button-Bb5gE3fO.js} +2 -2
  226. package/dist/{theme-button-VhAr3UYc.js.map → theme-button-Bb5gE3fO.js.map} +1 -1
  227. package/dist/{theme-button-B-vpp1dq.cjs → theme-button-GGwBDTFe.cjs} +2 -2
  228. package/dist/{theme-button-B-vpp1dq.cjs.map → theme-button-GGwBDTFe.cjs.map} +1 -1
  229. package/dist/theme-button.cjs +1 -1
  230. package/dist/theme-button.js +1 -1
  231. package/dist/theme.cjs +1 -1
  232. package/dist/{theme.component-ik0h6HFq.js → theme.component-C3Az3LCn.js} +2 -2
  233. package/dist/{theme.component-ik0h6HFq.js.map → theme.component-C3Az3LCn.js.map} +1 -1
  234. package/dist/{theme.component--s3cWu_k.cjs → theme.component-Du-mYia7.cjs} +2 -2
  235. package/dist/{theme.component--s3cWu_k.cjs.map → theme.component-Du-mYia7.cjs.map} +1 -1
  236. package/dist/theme.js +1 -1
  237. package/dist/{timezone-BWBf76zb.js → timezone-8fpYlPih.js} +3 -3
  238. package/dist/{timezone-BWBf76zb.js.map → timezone-8fpYlPih.js.map} +1 -1
  239. package/dist/{timezone-9357oWpA.cjs → timezone-BNXuXIk_.cjs} +2 -2
  240. package/dist/{timezone-9357oWpA.cjs.map → timezone-BNXuXIk_.cjs.map} +1 -1
  241. package/dist/{tooltip-BzRGzM4m.cjs → tooltip-B9PrX-ud.cjs} +2 -2
  242. package/dist/{tooltip-BzRGzM4m.cjs.map → tooltip-B9PrX-ud.cjs.map} +1 -1
  243. package/dist/{tooltip-DTFl4_O8.js → tooltip-boMvd7Px.js} +2 -2
  244. package/dist/{tooltip-DTFl4_O8.js.map → tooltip-boMvd7Px.js.map} +1 -1
  245. package/dist/tooltip.cjs +1 -1
  246. package/dist/tooltip.js +1 -1
  247. package/dist/{tree-DiuMa-E3.cjs → tree-DLxiFxTm.cjs} +2 -2
  248. package/dist/{tree-DiuMa-E3.cjs.map → tree-DLxiFxTm.cjs.map} +1 -1
  249. package/dist/{tree-2DZOmw8x.js → tree-DuMRYuUP.js} +2 -2
  250. package/dist/{tree-2DZOmw8x.js.map → tree-DuMRYuUP.js.map} +1 -1
  251. package/dist/tree.cjs +1 -1
  252. package/dist/tree.js +1 -1
  253. package/dist/{typewriter-D3mIe5Fd.cjs → typewriter-D2BteuUE.cjs} +2 -2
  254. package/dist/{typewriter-D3mIe5Fd.cjs.map → typewriter-D2BteuUE.cjs.map} +1 -1
  255. package/dist/{typewriter-Cv9vvTSz.js → typewriter-DFlhNtuC.js} +4 -4
  256. package/dist/{typewriter-Cv9vvTSz.js.map → typewriter-DFlhNtuC.js.map} +1 -1
  257. package/dist/typewriter.cjs +1 -1
  258. package/dist/typewriter.js +1 -1
  259. package/dist/{typography-CJxLMGmy.cjs → typography-B08MvG9M.cjs} +2 -2
  260. package/dist/{typography-CJxLMGmy.cjs.map → typography-B08MvG9M.cjs.map} +1 -1
  261. package/dist/{typography-BHkdocbi.js → typography-BMNXy5E7.js} +2 -2
  262. package/dist/{typography-BHkdocbi.js.map → typography-BMNXy5E7.js.map} +1 -1
  263. package/dist/typography.cjs +1 -1
  264. package/dist/typography.js +1 -1
  265. package/package.json +1 -1
  266. package/types/src/area/area.component.d.ts +23 -6
  267. package/types/src/area/area.service.d.ts +27 -1
  268. package/types/src/area/router.types.d.ts +9 -1
  269. package/types/src/code-highlight/code-highlight.d.ts +10 -1
  270. package/dist/area.component-DZTCiVg0.cjs +0 -8
  271. package/dist/area.component-DZTCiVg0.cjs.map +0 -1
  272. package/dist/area.component-i8iXPKv2.js +0 -191
  273. package/dist/area.component-i8iXPKv2.js.map +0 -1
  274. package/dist/code-preview-BAuQVO86.js +0 -881
  275. package/dist/code-preview-BAuQVO86.js.map +0 -1
  276. package/dist/code-preview-vWTFUBks.cjs +0 -138
  277. package/dist/code-preview-vWTFUBks.cjs.map +0 -1
  278. package/dist/dialog-content-BR9WwPo4.cjs.map +0 -1
  279. package/dist/dialog-content-Cbg_9SMr.js.map +0 -1
  280. package/dist/tailwind.mixin-DK3nrJs-.js +0 -43
  281. package/dist/tailwind.mixin-DUe4ADKX.cjs +0 -2
@@ -1,881 +0,0 @@
1
- import "rxjs";
2
- import "lit/directives/class-map.js";
3
- import "lit/directives/style-map.js";
4
- import { T as on } from "./tailwind.mixin-DK3nrJs-.js";
5
- import { css as sn, html as He } from "lit";
6
- import { property as ye, state as cn, customElement as ln } from "lit/decorators.js";
7
- import { g as In } from "./_commonjsHelpers-Dw9sPFZy.js";
8
- var Ue, tn;
9
- function Ln() {
10
- if (tn) return Ue;
11
- function t(e) {
12
- return e instanceof Map ? e.clear = e.delete = e.set = function() {
13
- throw new Error("map is read-only");
14
- } : e instanceof Set && (e.add = e.clear = e.delete = function() {
15
- throw new Error("set is read-only");
16
- }), Object.freeze(e), Object.getOwnPropertyNames(e).forEach((n) => {
17
- const a = e[n], d = typeof a;
18
- d !== "object" && d !== "function" || Object.isFrozen(a) || t(a);
19
- }), e;
20
- }
21
- tn = 1;
22
- class l {
23
- constructor(n) {
24
- n.data === void 0 && (n.data = {}), this.data = n.data, this.isMatchIgnored = !1;
25
- }
26
- ignoreMatch() {
27
- this.isMatchIgnored = !0;
28
- }
29
- }
30
- function i(e) {
31
- return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
32
- }
33
- function f(e, ...n) {
34
- const a = /* @__PURE__ */ Object.create(null);
35
- for (const d in e) a[d] = e[d];
36
- return n.forEach(function(d) {
37
- for (const E in d) a[E] = d[E];
38
- }), a;
39
- }
40
- const m = (e) => !!e.scope;
41
- class b {
42
- constructor(n, a) {
43
- this.buffer = "", this.classPrefix = a.classPrefix, n.walk(this);
44
- }
45
- addText(n) {
46
- this.buffer += i(n);
47
- }
48
- openNode(n) {
49
- if (!m(n)) return;
50
- const a = ((d, { prefix: E }) => {
51
- if (d.startsWith("language:")) return d.replace("language:", "language-");
52
- if (d.includes(".")) {
53
- const r = d.split(".");
54
- return [`${E}${r.shift()}`, ...r.map((u, c) => `${u}${"_".repeat(c + 1)}`)].join(" ");
55
- }
56
- return `${E}${d}`;
57
- })(n.scope, { prefix: this.classPrefix });
58
- this.span(a);
59
- }
60
- closeNode(n) {
61
- m(n) && (this.buffer += "</span>");
62
- }
63
- value() {
64
- return this.buffer;
65
- }
66
- span(n) {
67
- this.buffer += `<span class="${n}">`;
68
- }
69
- }
70
- const v = (e = {}) => {
71
- const n = { children: [] };
72
- return Object.assign(n, e), n;
73
- };
74
- class A {
75
- constructor() {
76
- this.rootNode = v(), this.stack = [this.rootNode];
77
- }
78
- get top() {
79
- return this.stack[this.stack.length - 1];
80
- }
81
- get root() {
82
- return this.rootNode;
83
- }
84
- add(n) {
85
- this.top.children.push(n);
86
- }
87
- openNode(n) {
88
- const a = v({ scope: n });
89
- this.add(a), this.stack.push(a);
90
- }
91
- closeNode() {
92
- if (this.stack.length > 1) return this.stack.pop();
93
- }
94
- closeAllNodes() {
95
- for (; this.closeNode(); ) ;
96
- }
97
- toJSON() {
98
- return JSON.stringify(this.rootNode, null, 4);
99
- }
100
- walk(n) {
101
- return this.constructor._walk(n, this.rootNode);
102
- }
103
- static _walk(n, a) {
104
- return typeof a == "string" ? n.addText(a) : a.children && (n.openNode(a), a.children.forEach((d) => this._walk(n, d)), n.closeNode(a)), n;
105
- }
106
- static _collapse(n) {
107
- typeof n != "string" && n.children && (n.children.every((a) => typeof a == "string") ? n.children = [n.children.join("")] : n.children.forEach((a) => {
108
- A._collapse(a);
109
- }));
110
- }
111
- }
112
- class M extends A {
113
- constructor(n) {
114
- super(), this.options = n;
115
- }
116
- addText(n) {
117
- n !== "" && this.add(n);
118
- }
119
- startScope(n) {
120
- this.openNode(n);
121
- }
122
- endScope() {
123
- this.closeNode();
124
- }
125
- t(n, a) {
126
- const d = n.root;
127
- a && (d.scope = `language:${a}`), this.add(d);
128
- }
129
- toHTML() {
130
- return new b(this, this.options).value();
131
- }
132
- finalize() {
133
- return this.closeAllNodes(), !0;
134
- }
135
- }
136
- function D(e) {
137
- return e ? typeof e == "string" ? e : e.source : null;
138
- }
139
- function G(e) {
140
- return P("(?=", e, ")");
141
- }
142
- function T(e) {
143
- return P("(?:", e, ")*");
144
- }
145
- function U(e) {
146
- return P("(?:", e, ")?");
147
- }
148
- function P(...e) {
149
- return e.map((n) => D(n)).join("");
150
- }
151
- function F(...e) {
152
- return "(" + (function(a) {
153
- const d = a[a.length - 1];
154
- return typeof d == "object" && d.constructor === Object ? (a.splice(a.length - 1, 1), d) : {};
155
- }(e).capture ? "" : "?:") + e.map((a) => D(a)).join("|") + ")";
156
- }
157
- function K(e) {
158
- return new RegExp(e.toString() + "|").exec("").length - 1;
159
- }
160
- const X = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
161
- function V(e, { joinWith: n }) {
162
- let a = 0;
163
- return e.map((d) => {
164
- a += 1;
165
- const E = a;
166
- let r = D(d), u = "";
167
- for (; r.length > 0; ) {
168
- const c = X.exec(r);
169
- if (!c) {
170
- u += r;
171
- break;
172
- }
173
- u += r.substring(0, c.index), r = r.substring(c.index + c[0].length), c[0][0] === "\\" && c[1] ? u += "\\" + String(Number(c[1]) + E) : (u += c[0], c[0] === "(" && a++);
174
- }
175
- return u;
176
- }).map((d) => `(${d})`).join(n);
177
- }
178
- const re = "[a-zA-Z]\\w*", W = "[a-zA-Z_]\\w*", H = "\\b\\d+(\\.\\d+)?", ve = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", oe = "\\b(0b[01]+)", Q = { begin: "\\\\[\\s\\S]", relevance: 0 }, xe = { scope: "string", begin: "'", end: "'", illegal: "\\n", contains: [Q] }, ue = { scope: "string", begin: '"', end: '"', illegal: "\\n", contains: [Q] }, se = function(e, n, a = {}) {
179
- const d = f({ scope: "comment", begin: e, end: n, contains: [] }, a);
180
- d.contains.push({ scope: "doctag", begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)", end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/, excludeBegin: !0, relevance: 0 });
181
- const E = F("I", "a", "is", "so", "us", "to", "at", "if", "in", "it", "on", /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, /[A-Za-z]+[-][a-z]+/, /[A-Za-z][a-z]{2,}/);
182
- return d.contains.push({ begin: P(/[ ]+/, "(", E, /[.]?[:]?([.][ ]|[ ])/, "){3}") }), d;
183
- }, ke = se("//", "$"), he = se("/\\*", "\\*/"), _e = se("#", "$"), L = { scope: "number", begin: H, relevance: 0 }, Y = { scope: "number", begin: ve, relevance: 0 }, ee = { scope: "number", begin: oe, relevance: 0 }, ne = { scope: "regexp", begin: /\/(?=[^/\n]*\/)/, end: /\/[gimuy]*/, contains: [Q, { begin: /\[/, end: /\]/, relevance: 0, contains: [Q] }] }, te = { scope: "title", begin: re, relevance: 0 }, pe = { scope: "title", begin: W, relevance: 0 }, me = { begin: "\\.\\s*" + W, relevance: 0 };
184
- var ce = Object.freeze({ __proto__: null, APOS_STRING_MODE: xe, BACKSLASH_ESCAPE: Q, BINARY_NUMBER_MODE: ee, BINARY_NUMBER_RE: oe, COMMENT: se, C_BLOCK_COMMENT_MODE: he, C_LINE_COMMENT_MODE: ke, C_NUMBER_MODE: Y, C_NUMBER_RE: ve, END_SAME_AS_BEGIN: function(e) {
185
- return Object.assign(e, { "on:begin": (n, a) => {
186
- a.data._beginMatch = n[1];
187
- }, "on:end": (n, a) => {
188
- a.data._beginMatch !== n[1] && a.ignoreMatch();
189
- } });
190
- }, HASH_COMMENT_MODE: _e, IDENT_RE: re, MATCH_NOTHING_RE: /\b\B/, METHOD_GUARD: me, NUMBER_MODE: L, NUMBER_RE: H, PHRASAL_WORDS_MODE: { begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ }, QUOTE_STRING_MODE: ue, REGEXP_MODE: ne, RE_STARTERS_RE: "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", SHEBANG: (e = {}) => {
191
- const n = /^#![ ]*\//;
192
- return e.binary && (e.begin = P(n, /.*\b/, e.binary, /\b.*/)), f({ scope: "meta", begin: n, end: /$/, relevance: 0, "on:begin": (a, d) => {
193
- a.index !== 0 && d.ignoreMatch();
194
- } }, e);
195
- }, TITLE_MODE: te, UNDERSCORE_IDENT_RE: W, UNDERSCORE_TITLE_MODE: pe });
196
- function Ne(e, n) {
197
- e.input[e.index - 1] === "." && n.ignoreMatch();
198
- }
199
- function wn(e, n) {
200
- e.className !== void 0 && (e.scope = e.className, delete e.className);
201
- }
202
- function En(e, n) {
203
- n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.i = Ne, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
204
- }
205
- function xn(e, n) {
206
- Array.isArray(e.illegal) && (e.illegal = F(...e.illegal));
207
- }
208
- function kn(e, n) {
209
- if (e.match) {
210
- if (e.begin || e.end) throw new Error("begin & end are not supported with match");
211
- e.begin = e.match, delete e.match;
212
- }
213
- }
214
- function _n(e, n) {
215
- e.relevance === void 0 && (e.relevance = 1);
216
- }
217
- const Nn = (e, n) => {
218
- if (!e.beforeMatch) return;
219
- if (e.starts) throw new Error("beforeMatch cannot be used with starts");
220
- const a = Object.assign({}, e);
221
- Object.keys(e).forEach((d) => {
222
- delete e[d];
223
- }), e.keywords = a.keywords, e.begin = P(a.beforeMatch, G(a.begin)), e.starts = { relevance: 0, contains: [Object.assign(a, { endsParent: !0 })] }, e.relevance = 0, delete a.beforeMatch;
224
- }, An = ["of", "and", "for", "in", "not", "or", "if", "then", "parent", "list", "value"];
225
- function Ze(e, n, a = "keyword") {
226
- const d = /* @__PURE__ */ Object.create(null);
227
- return typeof e == "string" ? E(a, e.split(" ")) : Array.isArray(e) ? E(a, e) : Object.keys(e).forEach(function(r) {
228
- Object.assign(d, Ze(e[r], n, r));
229
- }), d;
230
- function E(r, u) {
231
- n && (u = u.map((c) => c.toLowerCase())), u.forEach(function(c) {
232
- const j = c.split("|");
233
- d[j[0]] = [r, Sn(j[0], j[1])];
234
- });
235
- }
236
- }
237
- function Sn(e, n) {
238
- return n ? Number(n) : function(a) {
239
- return An.includes(a.toLowerCase());
240
- }(e) ? 0 : 1;
241
- }
242
- const Ge = {}, we = (e, n) => {
243
- Ge[`${e}/${n}`] || (Ge[`${e}/${n}`] = !0);
244
- }, Se = new Error();
245
- function Fe(e, n, { key: a }) {
246
- let d = 0;
247
- const E = e[a], r = {}, u = {};
248
- for (let c = 1; c <= n.length; c++) u[c + d] = E[c], r[c + d] = !0, d += K(n[c - 1]);
249
- e[a] = u, e[a]._emit = r, e[a]._multi = !0;
250
- }
251
- function On(e) {
252
- (function(n) {
253
- n.scope && typeof n.scope == "object" && n.scope !== null && (n.beginScope = n.scope, delete n.scope);
254
- })(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), function(n) {
255
- if (Array.isArray(n.begin)) {
256
- if (n.skip || n.excludeBegin || n.returnBegin || typeof n.beginScope != "object" || n.beginScope === null) throw Se;
257
- Fe(n, n.begin, { key: "beginScope" }), n.begin = V(n.begin, { joinWith: "" });
258
- }
259
- }(e), function(n) {
260
- if (Array.isArray(n.end)) {
261
- if (n.skip || n.excludeEnd || n.returnEnd || typeof n.endScope != "object" || n.endScope === null) throw Se;
262
- Fe(n, n.end, { key: "endScope" }), n.end = V(n.end, { joinWith: "" });
263
- }
264
- }(e);
265
- }
266
- function Mn(e) {
267
- function n(E, r) {
268
- return new RegExp(D(E), "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (r ? "g" : ""));
269
- }
270
- class a {
271
- constructor() {
272
- this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
273
- }
274
- addRule(r, u) {
275
- u.position = this.position++, this.matchIndexes[this.matchAt] = u, this.regexes.push([u, r]), this.matchAt += K(r) + 1;
276
- }
277
- compile() {
278
- this.regexes.length === 0 && (this.exec = () => null);
279
- const r = this.regexes.map((u) => u[1]);
280
- this.matcherRe = n(V(r, { joinWith: "|" }), !0), this.lastIndex = 0;
281
- }
282
- exec(r) {
283
- this.matcherRe.lastIndex = this.lastIndex;
284
- const u = this.matcherRe.exec(r);
285
- if (!u) return null;
286
- const c = u.findIndex((S, _) => _ > 0 && S !== void 0), j = this.matchIndexes[c];
287
- return u.splice(0, c), Object.assign(u, j);
288
- }
289
- }
290
- class d {
291
- constructor() {
292
- this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0;
293
- }
294
- getMatcher(r) {
295
- if (this.multiRegexes[r]) return this.multiRegexes[r];
296
- const u = new a();
297
- return this.rules.slice(r).forEach(([c, j]) => u.addRule(c, j)), u.compile(), this.multiRegexes[r] = u, u;
298
- }
299
- resumingScanAtSamePosition() {
300
- return this.regexIndex !== 0;
301
- }
302
- considerAll() {
303
- this.regexIndex = 0;
304
- }
305
- addRule(r, u) {
306
- this.rules.push([r, u]), u.type === "begin" && this.count++;
307
- }
308
- exec(r) {
309
- const u = this.getMatcher(this.regexIndex);
310
- u.lastIndex = this.lastIndex;
311
- let c = u.exec(r);
312
- if (this.resumingScanAtSamePosition() && !(c && c.index === this.lastIndex)) {
313
- const j = this.getMatcher(0);
314
- j.lastIndex = this.lastIndex + 1, c = j.exec(r);
315
- }
316
- return c && (this.regexIndex += c.position + 1, this.regexIndex === this.count && this.considerAll()), c;
317
- }
318
- }
319
- if (e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes("self")) throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
320
- return e.classNameAliases = f(e.classNameAliases || {}), function E(r, u) {
321
- const c = r;
322
- if (r.isCompiled) return c;
323
- [wn, kn, On, Nn].forEach((S) => S(r, u)), e.compilerExtensions.forEach((S) => S(r, u)), r.i = null, [En, xn, _n].forEach((S) => S(r, u)), r.isCompiled = !0;
324
- let j = null;
325
- return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), j = r.keywords.$pattern, delete r.keywords.$pattern), j = j || /\w+/, r.keywords && (r.keywords = Ze(r.keywords, e.case_insensitive)), c.keywordPatternRe = n(j, !0), u && (r.begin || (r.begin = /\B|\b/), c.beginRe = n(c.begin), r.end || r.endsWithParent || (r.end = /\B|\b/), r.end && (c.endRe = n(c.end)), c.terminatorEnd = D(c.end) || "", r.endsWithParent && u.terminatorEnd && (c.terminatorEnd += (r.end ? "|" : "") + u.terminatorEnd)), r.illegal && (c.illegalRe = n(r.illegal)), r.contains || (r.contains = []), r.contains = [].concat(...r.contains.map(function(S) {
326
- return function(_) {
327
- return _.variants && !_.cachedVariants && (_.cachedVariants = _.variants.map(function(le) {
328
- return f(_, { variants: null }, le);
329
- })), _.cachedVariants ? _.cachedVariants : Ke(_) ? f(_, { starts: _.starts ? f(_.starts) : null }) : Object.isFrozen(_) ? f(_) : _;
330
- }(S === "self" ? r : S);
331
- })), r.contains.forEach(function(S) {
332
- E(S, c);
333
- }), r.starts && E(r.starts, u), c.matcher = function(S) {
334
- const _ = new d();
335
- return S.contains.forEach((le) => _.addRule(le.begin, { rule: le, type: "begin" })), S.terminatorEnd && _.addRule(S.terminatorEnd, { type: "end" }), S.illegal && _.addRule(S.illegal, { type: "illegal" }), _;
336
- }(c), c;
337
- }(e);
338
- }
339
- function Ke(e) {
340
- return !!e && (e.endsWithParent || Ke(e.starts));
341
- }
342
- class Rn extends Error {
343
- constructor(n, a) {
344
- super(n), this.name = "HTMLInjectionError", this.html = a;
345
- }
346
- }
347
- const Le = i, Xe = f, We = Symbol("nomatch"), qe = function(e) {
348
- const n = /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null), d = [];
349
- let E = !0;
350
- const r = "Could not find the language '{}', did you forget to load/include a language module?", u = { disableAutodetect: !0, name: "Plain text", contains: [] };
351
- let c = { ignoreUnescapedHTML: !1, throwUnescapedHTML: !1, noHighlightRe: /^(no-?highlight)$/i, languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i, classPrefix: "hljs-", cssSelector: "pre code", languages: null, o: M };
352
- function j(s) {
353
- return c.noHighlightRe.test(s);
354
- }
355
- function S(s, h, y) {
356
- let B = "", R = "";
357
- typeof h == "object" ? (B = s, y = h.ignoreIllegals, R = h.language) : (we("10.7.0", "highlight(lang, code, ...args) has been deprecated."), we("10.7.0", `Please use highlight(code, options) instead.
358
- https://github.com/highlightjs/highlight.js/issues/2277`), R = s, B = h), y === void 0 && (y = !0);
359
- const C = { code: B, language: R };
360
- Me("before:highlight", C);
361
- const I = C.result ? C.result : _(C.language, C.code, y);
362
- return I.code = C.code, Me("after:highlight", I), I;
363
- }
364
- function _(s, h, y, B) {
365
- const R = /* @__PURE__ */ Object.create(null);
366
- function C() {
367
- if (!p.keywords) return void z.addText(k);
368
- let o = 0;
369
- p.keywordPatternRe.lastIndex = 0;
370
- let g = p.keywordPatternRe.exec(k), x = "";
371
- for (; g; ) {
372
- x += k.substring(o, g.index);
373
- const N = J.case_insensitive ? g[0].toLowerCase() : g[0], $ = (w = N, p.keywords[w]);
374
- if ($) {
375
- const [ie, Pe] = $;
376
- if (z.addText(x), x = "", R[N] = (R[N] || 0) + 1, R[N] <= 7 && (Te += Pe), ie.startsWith("_")) x += g[0];
377
- else {
378
- const je = J.classNameAliases[ie] || ie;
379
- Z(g[0], je);
380
- }
381
- } else x += g[0];
382
- o = p.keywordPatternRe.lastIndex, g = p.keywordPatternRe.exec(k);
383
- }
384
- var w;
385
- x += k.substring(o), z.addText(x);
386
- }
387
- function I() {
388
- p.subLanguage != null ? function() {
389
- if (k === "") return;
390
- let o = null;
391
- if (typeof p.subLanguage == "string") {
392
- if (!n[p.subLanguage]) return void z.addText(k);
393
- o = _(p.subLanguage, k, !0, nn[p.subLanguage]), nn[p.subLanguage] = o._top;
394
- } else o = le(k, p.subLanguage.length ? p.subLanguage : null);
395
- p.relevance > 0 && (Te += o.relevance), z.t(o._emitter, o.language);
396
- }() : C(), k = "";
397
- }
398
- function Z(o, g) {
399
- o !== "" && (z.startScope(g), z.addText(o), z.endScope());
400
- }
401
- function O(o, g) {
402
- let x = 1;
403
- const w = g.length - 1;
404
- for (; x <= w; ) {
405
- if (!o._emit[x]) {
406
- x++;
407
- continue;
408
- }
409
- const N = J.classNameAliases[o[x]] || o[x], $ = g[x];
410
- N ? Z($, N) : (k = $, C(), k = ""), x++;
411
- }
412
- }
413
- function q(o, g) {
414
- return o.scope && typeof o.scope == "string" && z.openNode(J.classNameAliases[o.scope] || o.scope), o.beginScope && (o.beginScope._wrap ? (Z(k, J.classNameAliases[o.beginScope._wrap] || o.beginScope._wrap), k = "") : o.beginScope._multi && (O(o.beginScope, g), k = "")), p = Object.create(o, { parent: { value: p } }), p;
415
- }
416
- function Ye(o, g, x) {
417
- let w = function(N, $) {
418
- const ie = N && N.exec($);
419
- return ie && ie.index === 0;
420
- }(o.endRe, x);
421
- if (w) {
422
- if (o["on:end"]) {
423
- const N = new l(o);
424
- o["on:end"](g, N), N.isMatchIgnored && (w = !1);
425
- }
426
- if (w) {
427
- for (; o.endsParent && o.parent; ) o = o.parent;
428
- return o;
429
- }
430
- }
431
- if (o.endsWithParent) return Ye(o.parent, g, x);
432
- }
433
- function Tn(o) {
434
- return p.matcher.regexIndex === 0 ? (k += o[0], 1) : (De = !0, 0);
435
- }
436
- function jn(o) {
437
- const g = o[0], x = h.substring(o.index), w = Ye(p, o, x);
438
- if (!w) return We;
439
- const N = p;
440
- p.endScope && p.endScope._wrap ? (I(), Z(g, p.endScope._wrap)) : p.endScope && p.endScope._multi ? (I(), O(p.endScope, o)) : N.skip ? k += g : (N.returnEnd || N.excludeEnd || (k += g), I(), N.excludeEnd && (k = g));
441
- do
442
- p.scope && z.closeNode(), p.skip || p.subLanguage || (Te += p.relevance), p = p.parent;
443
- while (p !== w.parent);
444
- return w.starts && q(w.starts, o), N.returnEnd ? 0 : g.length;
445
- }
446
- let Re = {};
447
- function en(o, g) {
448
- const x = g && g[0];
449
- if (k += o, x == null) return I(), 0;
450
- if (Re.type === "begin" && g.type === "end" && Re.index === g.index && x === "") {
451
- if (k += h.slice(g.index, g.index + 1), !E) {
452
- const w = new Error(`0 width match regex (${s})`);
453
- throw w.languageName = s, w.badRule = Re.rule, w;
454
- }
455
- return 1;
456
- }
457
- if (Re = g, g.type === "begin") return function(w) {
458
- const N = w[0], $ = w.rule, ie = new l($), Pe = [$.i, $["on:begin"]];
459
- for (const je of Pe) if (je && (je(w, ie), ie.isMatchIgnored)) return Tn(N);
460
- return $.skip ? k += N : ($.excludeBegin && (k += N), I(), $.returnBegin || $.excludeBegin || (k = N)), q($, w), $.returnBegin ? 0 : N.length;
461
- }(g);
462
- if (g.type === "illegal" && !y) {
463
- const w = new Error('Illegal lexeme "' + x + '" for mode "' + (p.scope || "<unnamed>") + '"');
464
- throw w.mode = p, w;
465
- }
466
- if (g.type === "end") {
467
- const w = jn(g);
468
- if (w !== We) return w;
469
- }
470
- if (g.type === "illegal" && x === "") return k += `
471
- `, 1;
472
- if ($e > 1e5 && $e > 3 * g.index)
473
- throw new Error("potential infinite loop, way more iterations than matches");
474
- return k += x, x.length;
475
- }
476
- const J = de(s);
477
- if (!J) throw r.replace("{}", s), new Error('Unknown language: "' + s + '"');
478
- const Cn = Mn(J);
479
- let ze = "", p = B || Cn;
480
- const nn = {}, z = new c.o(c);
481
- (function() {
482
- const o = [];
483
- for (let g = p; g !== J; g = g.parent) g.scope && o.unshift(g.scope);
484
- o.forEach((g) => z.openNode(g));
485
- })();
486
- let k = "", Te = 0, be = 0, $e = 0, De = !1;
487
- try {
488
- if (J.l) J.l(h, z);
489
- else {
490
- for (p.matcher.considerAll(); ; ) {
491
- $e++, De ? De = !1 : p.matcher.considerAll(), p.matcher.lastIndex = be;
492
- const o = p.matcher.exec(h);
493
- if (!o) break;
494
- const g = en(h.substring(be, o.index), o);
495
- be = o.index + g;
496
- }
497
- en(h.substring(be));
498
- }
499
- return z.finalize(), ze = z.toHTML(), { language: s, value: ze, relevance: Te, illegal: !1, _emitter: z, _top: p };
500
- } catch (o) {
501
- if (o.message && o.message.includes("Illegal")) return { language: s, value: Le(h), illegal: !0, relevance: 0, _illegalBy: { message: o.message, index: be, context: h.slice(be - 100, be + 100), mode: o.mode, resultSoFar: ze }, _emitter: z };
502
- if (E) return { language: s, value: Le(h), illegal: !1, relevance: 0, errorRaised: o, _emitter: z, _top: p };
503
- throw o;
504
- }
505
- }
506
- function le(s, h) {
507
- h = h || c.languages || Object.keys(n);
508
- const y = function(O) {
509
- const q = { value: Le(O), illegal: !1, relevance: 0, _top: u, _emitter: new c.o(c) };
510
- return q._emitter.addText(O), q;
511
- }(s), B = h.filter(de).filter(Qe).map((O) => _(O, s, !1));
512
- B.unshift(y);
513
- const R = B.sort((O, q) => {
514
- if (O.relevance !== q.relevance) return q.relevance - O.relevance;
515
- if (O.language && q.language) {
516
- if (de(O.language).supersetOf === q.language) return 1;
517
- if (de(q.language).supersetOf === O.language) return -1;
518
- }
519
- return 0;
520
- }), [C, I] = R, Z = C;
521
- return Z.secondBest = I, Z;
522
- }
523
- function Be(s) {
524
- let h = null;
525
- const y = function(C) {
526
- let I = C.className + " ";
527
- I += C.parentNode ? C.parentNode.className : "";
528
- const Z = c.languageDetectRe.exec(I);
529
- if (Z) {
530
- const O = de(Z[1]);
531
- return O || r.replace("{}", Z[1]), O ? Z[1] : "no-highlight";
532
- }
533
- return I.split(/\s+/).find((O) => j(O) || de(O));
534
- }(s);
535
- if (j(y) || (Me("before:highlightElement", { el: s, language: y }), s.dataset.highlighted)) return;
536
- if (s.children.length > 0 && (c.ignoreUnescapedHTML, c.throwUnescapedHTML))
537
- throw new Rn("One of your code blocks includes unescaped HTML.", s.innerHTML);
538
- h = s;
539
- const B = h.textContent, R = y ? S(B, { language: y, ignoreIllegals: !0 }) : le(B);
540
- s.innerHTML = R.value, s.dataset.highlighted = "yes", function(C, I, Z) {
541
- const O = I && a[I] || Z;
542
- C.classList.add("hljs"), C.classList.add(`language-${O}`);
543
- }(s, y, R.language), s.result = { language: R.language, re: R.relevance, relevance: R.relevance }, R.secondBest && (s.secondBest = { language: R.secondBest.language, relevance: R.secondBest.relevance }), Me("after:highlightElement", { el: s, result: R, text: B });
544
- }
545
- let Je = !1;
546
- function Oe() {
547
- if (document.readyState === "loading") return Je || window.addEventListener("DOMContentLoaded", function() {
548
- Oe();
549
- }, !1), void (Je = !0);
550
- document.querySelectorAll(c.cssSelector).forEach(Be);
551
- }
552
- function de(s) {
553
- return s = (s || "").toLowerCase(), n[s] || n[a[s]];
554
- }
555
- function Ve(s, { languageName: h }) {
556
- typeof s == "string" && (s = [s]), s.forEach((y) => {
557
- a[y.toLowerCase()] = h;
558
- });
559
- }
560
- function Qe(s) {
561
- const h = de(s);
562
- return h && !h.disableAutodetect;
563
- }
564
- function Me(s, h) {
565
- const y = s;
566
- d.forEach(function(B) {
567
- B[y] && B[y](h);
568
- });
569
- }
570
- Object.assign(e, { highlight: S, highlightAuto: le, highlightAll: Oe, highlightElement: Be, highlightBlock: function(s) {
571
- return we("10.7.0", "highlightBlock will be removed entirely in v12.0"), we("10.7.0", "Please use highlightElement now."), Be(s);
572
- }, configure: function(s) {
573
- c = Xe(c, s);
574
- }, initHighlighting: () => {
575
- Oe(), we("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
576
- }, initHighlightingOnLoad: function() {
577
- Oe(), we("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
578
- }, registerLanguage: function(s, h) {
579
- let y = null;
580
- try {
581
- y = h(e);
582
- } catch (B) {
583
- if ("Language definition for '{}' could not be registered.".replace("{}", s), !E) throw B;
584
- y = u;
585
- }
586
- y.name || (y.name = s), n[s] = y, y.rawDefinition = h.bind(null, e), y.aliases && Ve(y.aliases, { languageName: s });
587
- }, unregisterLanguage: function(s) {
588
- delete n[s];
589
- for (const h of Object.keys(a)) a[h] === s && delete a[h];
590
- }, listLanguages: function() {
591
- return Object.keys(n);
592
- }, getLanguage: de, registerAliases: Ve, autoDetection: Qe, inherit: Xe, addPlugin: function(s) {
593
- (function(h) {
594
- h["before:highlightBlock"] && !h["before:highlightElement"] && (h["before:highlightElement"] = (y) => {
595
- h["before:highlightBlock"](Object.assign({ block: y.el }, y));
596
- }), h["after:highlightBlock"] && !h["after:highlightElement"] && (h["after:highlightElement"] = (y) => {
597
- h["after:highlightBlock"](Object.assign({ block: y.el }, y));
598
- });
599
- })(s), d.push(s);
600
- }, removePlugin: function(s) {
601
- const h = d.indexOf(s);
602
- h !== -1 && d.splice(h, 1);
603
- } }), e.debugMode = function() {
604
- E = !1;
605
- }, e.safeMode = function() {
606
- E = !0;
607
- }, e.versionString = "11.11.1", e.regex = { concat: P, lookahead: G, either: F, optional: U, anyNumberOfTimes: T };
608
- for (const s in ce) typeof ce[s] == "object" && t(ce[s]);
609
- return Object.assign(e, ce), e;
610
- }, Ee = qe({});
611
- return Ee.newInstance = () => qe({}), Ue = Ee, Ee.HighlightJS = Ee, Ee.default = Ee, Ue;
612
- }
613
- const ae = In(Ln());
614
- function an(t) {
615
- const l = t.regex, i = l.concat(/[\p{L}_]/u, l.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), f = { className: "symbol", begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/ }, m = { begin: /\s/, contains: [{ className: "keyword", begin: /#?[a-z_][a-z1-9_-]+/, illegal: /\n/ }] }, b = t.inherit(m, { begin: /\(/, end: /\)/ }), v = t.inherit(t.APOS_STRING_MODE, { className: "string" }), A = t.inherit(t.QUOTE_STRING_MODE, { className: "string" }), M = { endsWithParent: !0, illegal: /</, relevance: 0, contains: [{ className: "attr", begin: /[\p{L}0-9._:-]+/u, relevance: 0 }, { begin: /=\s*/, relevance: 0, contains: [{ className: "string", endsParent: !0, variants: [{ begin: /"/, end: /"/, contains: [f] }, { begin: /'/, end: /'/, contains: [f] }, { begin: /[^\s"'=<>`]+/ }] }] }] };
616
- return { name: "HTML, XML", aliases: ["html", "xhtml", "rss", "atom", "xjb", "xsd", "xsl", "plist", "wsf", "svg"], case_insensitive: !0, unicodeRegex: !0, contains: [{ className: "meta", begin: /<![a-z]/, end: />/, relevance: 10, contains: [m, A, v, b, { begin: /\[/, end: /\]/, contains: [{ className: "meta", begin: /<![a-z]/, end: />/, contains: [m, b, A, v] }] }] }, t.COMMENT(/<!--/, /-->/, { relevance: 10 }), { begin: /<!\[CDATA\[/, end: /\]\]>/, relevance: 10 }, f, { className: "meta", end: /\?>/, variants: [{ begin: /<\?xml/, relevance: 10, contains: [A] }, { begin: /<\?[a-z][a-z0-9]+/ }] }, { className: "tag", begin: /<style(?=\s|>)/, end: />/, keywords: { name: "style" }, contains: [M], starts: { end: /<\/style>/, returnEnd: !0, subLanguage: ["css", "xml"] } }, { className: "tag", begin: /<script(?=\s|>)/, end: />/, keywords: { name: "script" }, contains: [M], starts: { end: /<\/script>/, returnEnd: !0, subLanguage: ["javascript", "handlebars", "xml"] } }, { className: "tag", begin: /<>|<\/>/ }, { className: "tag", begin: l.concat(/</, l.lookahead(l.concat(i, l.either(/\/>/, />/, /\s/)))), end: /\/?>/, contains: [{ className: "name", begin: i, relevance: 0, starts: M }] }, { className: "tag", begin: l.concat(/<\//, l.lookahead(l.concat(i, />/))), contains: [{ className: "name", begin: i, relevance: 0 }, { begin: />/, relevance: 0, endsParent: !0 }] }] };
617
- }
618
- const rn = "[A-Za-z$_][0-9A-Za-z$_]*", Bn = ["as", "in", "of", "if", "for", "while", "finally", "var", "new", "function", "do", "return", "void", "else", "break", "catch", "instanceof", "with", "throw", "case", "default", "try", "switch", "continue", "typeof", "delete", "let", "yield", "const", "class", "debugger", "async", "await", "static", "import", "from", "export", "extends", "using"], zn = ["true", "false", "null", "undefined", "NaN", "Infinity"], dn = ["Object", "Function", "Boolean", "Symbol", "Math", "Date", "Number", "BigInt", "String", "RegExp", "Array", "Float32Array", "Float64Array", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Int32Array", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array", "Set", "Map", "WeakSet", "WeakMap", "ArrayBuffer", "SharedArrayBuffer", "Atomics", "DataView", "JSON", "Promise", "Generator", "GeneratorFunction", "AsyncFunction", "Reflect", "Proxy", "Intl", "WebAssembly"], gn = ["Error", "EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError"], un = ["setInterval", "setTimeout", "clearInterval", "clearTimeout", "require", "exports", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "unescape"], $n = ["arguments", "this", "super", "console", "window", "document", "localStorage", "sessionStorage", "module", "global"], Dn = [].concat(un, dn, gn), Ie = "[A-Za-z$_][0-9A-Za-z$_]*", hn = ["as", "in", "of", "if", "for", "while", "finally", "var", "new", "function", "do", "return", "void", "else", "break", "catch", "instanceof", "with", "throw", "case", "default", "try", "switch", "continue", "typeof", "delete", "let", "yield", "const", "class", "debugger", "async", "await", "static", "import", "from", "export", "extends", "using"], pn = ["true", "false", "null", "undefined", "NaN", "Infinity"], mn = ["Object", "Function", "Boolean", "Symbol", "Math", "Date", "Number", "BigInt", "String", "RegExp", "Array", "Float32Array", "Float64Array", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Int32Array", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array", "Set", "Map", "WeakSet", "WeakMap", "ArrayBuffer", "SharedArrayBuffer", "Atomics", "DataView", "JSON", "Promise", "Generator", "GeneratorFunction", "AsyncFunction", "Reflect", "Proxy", "Intl", "WebAssembly"], bn = ["Error", "EvalError", "InternalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError"], fn = ["setInterval", "setTimeout", "clearInterval", "clearTimeout", "require", "exports", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "unescape"], yn = ["arguments", "this", "super", "console", "window", "document", "localStorage", "sessionStorage", "module", "global"], vn = [].concat(fn, mn, bn);
619
- function Pn(t) {
620
- const l = t.regex, i = Ie, f = "<>", m = "</>", b = { begin: /<[A-Za-z0-9\\._:-]+/, end: /\/[A-Za-z0-9\\._:-]+>|\/>/, isTrulyOpeningTag: (L, Y) => {
621
- const ee = L[0].length + L.index, ne = L.input[ee];
622
- if (ne === "<" || ne === ",") return void Y.ignoreMatch();
623
- let te;
624
- ne === ">" && (((me, { after: ce }) => {
625
- const Ne = "</" + me[0].slice(1);
626
- return me.input.indexOf(Ne, ce) !== -1;
627
- })(L, { after: ee }) || Y.ignoreMatch());
628
- const pe = L.input.substring(ee);
629
- ((te = pe.match(/^\s*=/)) || (te = pe.match(/^\s+extends\s+/)) && te.index === 0) && Y.ignoreMatch();
630
- } }, v = { $pattern: Ie, keyword: hn, literal: pn, built_in: vn, "variable.language": yn }, A = "[0-9](_?[0-9])*", M = `\\.(${A})`, D = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", G = { className: "number", variants: [{ begin: `(\\b(${D})((${M})|\\.)?|(${M}))[eE][+-]?(${A})\\b` }, { begin: `\\b(${D})\\b((${M})\\b|\\.)?|(${M})\\b` }, { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" }, { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, { begin: "\\b0[0-7]+n?\\b" }], relevance: 0 }, T = { className: "subst", begin: "\\$\\{", end: "\\}", keywords: v, contains: [] }, U = { begin: ".?html`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "xml" } }, P = { begin: ".?css`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "css" } }, F = { begin: ".?gql`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "graphql" } }, K = { className: "string", begin: "`", end: "`", contains: [t.BACKSLASH_ESCAPE, T] }, X = { className: "comment", variants: [t.COMMENT(/\/\*\*(?!\/)/, "\\*/", { relevance: 0, contains: [{ begin: "(?=@[A-Za-z]+)", relevance: 0, contains: [{ className: "doctag", begin: "@[A-Za-z]+" }, { className: "type", begin: "\\{", end: "\\}", excludeEnd: !0, excludeBegin: !0, relevance: 0 }, { className: "variable", begin: i + "(?=\\s*(-)|$)", endsParent: !0, relevance: 0 }, { begin: /(?=[^\n])\s/, relevance: 0 }] }] }), t.C_BLOCK_COMMENT_MODE, t.C_LINE_COMMENT_MODE] }, V = [t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, U, P, F, K, { match: /\$\d+/ }, G];
631
- T.contains = V.concat({ begin: /\{/, end: /\}/, keywords: v, contains: ["self"].concat(V) });
632
- const re = [].concat(X, T.contains), W = re.concat([{ begin: /(\s*)\(/, end: /\)/, keywords: v, contains: ["self"].concat(re) }]), H = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: v, contains: W }, ve = { variants: [{ match: [/class/, /\s+/, i, /\s+/, /extends/, /\s+/, l.concat(i, "(", l.concat(/\./, i), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, i], scope: { 1: "keyword", 3: "title.class" } }] }, oe = { relevance: 0, match: l.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/), className: "title.class", keywords: { _: [...mn, ...bn] } }, Q = { variants: [{ match: [/function/, /\s+/, i, /(?=\s*\()/] }, { match: [/function/, /\s*(?=\()/] }], className: { 1: "keyword", 3: "title.function" }, label: "func.def", contains: [H], illegal: /%/ }, xe = { match: l.concat(/\b/, (ue = [...fn, "super", "import"].map((L) => `${L}\\s*\\(`), l.concat("(?!", ue.join("|"), ")")), i, l.lookahead(/\s*\(/)), className: "title.function", relevance: 0 };
633
- var ue;
634
- const se = { begin: l.concat(/\./, l.lookahead(l.concat(i, /(?![0-9A-Za-z$_(])/))), end: i, excludeBegin: !0, keywords: "prototype", className: "property", relevance: 0 }, ke = { match: [/get|set/, /\s+/, i, /(?=\()/], className: { 1: "keyword", 3: "title.function" }, contains: [{ begin: /\(\)/ }, H] }, he = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + t.UNDERSCORE_IDENT_RE + ")\\s*=>", _e = { match: [/const|var|let/, /\s+/, i, /\s*/, /=\s*/, /(async\s*)?/, l.lookahead(he)], keywords: "async", className: { 1: "keyword", 3: "title.function" }, contains: [H] };
635
- return { name: "JavaScript", aliases: ["js", "jsx", "mjs", "cjs"], keywords: v, exports: { PARAMS_CONTAINS: W, CLASS_REFERENCE: oe }, illegal: /#(?![$_A-z])/, contains: [t.SHEBANG({ label: "shebang", binary: "node", relevance: 5 }), { label: "use_strict", className: "meta", relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ }, t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, U, P, F, K, X, { match: /\$\d+/ }, G, oe, { scope: "attr", match: i + l.lookahead(":"), relevance: 0 }, _e, { begin: "(" + t.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", keywords: "return throw case", relevance: 0, contains: [X, t.REGEXP_MODE, { className: "function", begin: he, returnBegin: !0, end: "\\s*=>", contains: [{ className: "params", variants: [{ begin: t.UNDERSCORE_IDENT_RE, relevance: 0 }, { className: null, begin: /\(\s*\)/, skip: !0 }, { begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: v, contains: W }] }] }, { begin: /,/, relevance: 0 }, { match: /\s+/, relevance: 0 }, { variants: [{ begin: f, end: m }, { match: /<[A-Za-z0-9\\._:-]+\s*\/>/ }, { begin: b.begin, "on:begin": b.isTrulyOpeningTag, end: b.end }], subLanguage: "xml", contains: [{ begin: b.begin, end: b.end, skip: !0, contains: ["self"] }] }] }, Q, { beginKeywords: "while if switch catch for" }, { begin: "\\b(?!function)" + t.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", returnBegin: !0, label: "func.def", contains: [H, t.inherit(t.TITLE_MODE, { begin: i, className: "title.function" })] }, { match: /\.\.\./, relevance: 0 }, se, { match: "\\$" + i, relevance: 0 }, { match: [/\bconstructor(?=\s*\()/], className: { 1: "title.function" }, contains: [H] }, xe, { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: "variable.constant" }, ve, ke, { match: /\$[(.]/ }] };
636
- }
637
- const Un = ["a", "abbr", "address", "article", "aside", "audio", "b", "blockquote", "body", "button", "canvas", "caption", "cite", "code", "dd", "del", "details", "dfn", "div", "dl", "dt", "em", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "mark", "menu", "nav", "object", "ol", "optgroup", "option", "p", "picture", "q", "quote", "samp", "section", "select", "source", "span", "strong", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "ul", "var", "video", "defs", "g", "marker", "mask", "pattern", "svg", "switch", "symbol", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feFlood", "feGaussianBlur", "feImage", "feMerge", "feMorphology", "feOffset", "feSpecularLighting", "feTile", "feTurbulence", "linearGradient", "radialGradient", "stop", "circle", "ellipse", "image", "line", "path", "polygon", "polyline", "rect", "text", "use", "textPath", "tspan", "foreignObject", "clipPath"], Hn = ["any-hover", "any-pointer", "aspect-ratio", "color", "color-gamut", "color-index", "device-aspect-ratio", "device-height", "device-width", "display-mode", "forced-colors", "grid", "height", "hover", "inverted-colors", "monochrome", "orientation", "overflow-block", "overflow-inline", "pointer", "prefers-color-scheme", "prefers-contrast", "prefers-reduced-motion", "prefers-reduced-transparency", "resolution", "scan", "scripting", "update", "width", "min-width", "max-width", "min-height", "max-height"].sort().reverse(), Zn = ["active", "any-link", "blank", "checked", "current", "default", "defined", "dir", "disabled", "drop", "empty", "enabled", "first", "first-child", "first-of-type", "fullscreen", "future", "focus", "focus-visible", "focus-within", "has", "host", "host-context", "hover", "indeterminate", "in-range", "invalid", "is", "lang", "last-child", "last-of-type", "left", "link", "local-link", "not", "nth-child", "nth-col", "nth-last-child", "nth-last-col", "nth-last-of-type", "nth-of-type", "only-child", "only-of-type", "optional", "out-of-range", "past", "placeholder-shown", "read-only", "read-write", "required", "right", "root", "scope", "target", "target-within", "user-invalid", "valid", "visited", "where"].sort().reverse(), Gn = ["after", "backdrop", "before", "cue", "cue-region", "first-letter", "first-line", "grammar-error", "marker", "part", "placeholder", "selection", "slotted", "spelling-error"].sort().reverse(), Fn = ["accent-color", "align-content", "align-items", "align-self", "alignment-baseline", "all", "anchor-name", "animation", "animation-composition", "animation-delay", "animation-direction", "animation-duration", "animation-fill-mode", "animation-iteration-count", "animation-name", "animation-play-state", "animation-range", "animation-range-end", "animation-range-start", "animation-timeline", "animation-timing-function", "appearance", "aspect-ratio", "backdrop-filter", "backface-visibility", "background", "background-attachment", "background-blend-mode", "background-clip", "background-color", "background-image", "background-origin", "background-position", "background-position-x", "background-position-y", "background-repeat", "background-size", "baseline-shift", "block-size", "border", "border-block", "border-block-color", "border-block-end", "border-block-end-color", "border-block-end-style", "border-block-end-width", "border-block-start", "border-block-start-color", "border-block-start-style", "border-block-start-width", "border-block-style", "border-block-width", "border-bottom", "border-bottom-color", "border-bottom-left-radius", "border-bottom-right-radius", "border-bottom-style", "border-bottom-width", "border-collapse", "border-color", "border-end-end-radius", "border-end-start-radius", "border-image", "border-image-outset", "border-image-repeat", "border-image-slice", "border-image-source", "border-image-width", "border-inline", "border-inline-color", "border-inline-end", "border-inline-end-color", "border-inline-end-style", "border-inline-end-width", "border-inline-start", "border-inline-start-color", "border-inline-start-style", "border-inline-start-width", "border-inline-style", "border-inline-width", "border-left", "border-left-color", "border-left-style", "border-left-width", "border-radius", "border-right", "border-right-color", "border-right-style", "border-right-width", "border-spacing", "border-start-end-radius", "border-start-start-radius", "border-style", "border-top", "border-top-color", "border-top-left-radius", "border-top-right-radius", "border-top-style", "border-top-width", "border-width", "bottom", "box-align", "box-decoration-break", "box-direction", "box-flex", "box-flex-group", "box-lines", "box-ordinal-group", "box-orient", "box-pack", "box-shadow", "box-sizing", "break-after", "break-before", "break-inside", "caption-side", "caret-color", "clear", "clip", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "color-scheme", "column-count", "column-fill", "column-gap", "column-rule", "column-rule-color", "column-rule-style", "column-rule-width", "column-span", "column-width", "columns", "contain", "contain-intrinsic-block-size", "contain-intrinsic-height", "contain-intrinsic-inline-size", "contain-intrinsic-size", "contain-intrinsic-width", "container", "container-name", "container-type", "content", "content-visibility", "counter-increment", "counter-reset", "counter-set", "cue", "cue-after", "cue-before", "cursor", "cx", "cy", "direction", "display", "dominant-baseline", "empty-cells", "enable-background", "field-sizing", "fill", "fill-opacity", "fill-rule", "filter", "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap", "float", "flood-color", "flood-opacity", "flow", "font", "font-display", "font-family", "font-feature-settings", "font-kerning", "font-language-override", "font-optical-sizing", "font-palette", "font-size", "font-size-adjust", "font-smooth", "font-smoothing", "font-stretch", "font-style", "font-synthesis", "font-synthesis-position", "font-synthesis-small-caps", "font-synthesis-style", "font-synthesis-weight", "font-variant", "font-variant-alternates", "font-variant-caps", "font-variant-east-asian", "font-variant-emoji", "font-variant-ligatures", "font-variant-numeric", "font-variant-position", "font-variation-settings", "font-weight", "forced-color-adjust", "gap", "glyph-orientation-horizontal", "glyph-orientation-vertical", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows", "grid-column", "grid-column-end", "grid-column-start", "grid-gap", "grid-row", "grid-row-end", "grid-row-start", "grid-template", "grid-template-areas", "grid-template-columns", "grid-template-rows", "hanging-punctuation", "height", "hyphenate-character", "hyphenate-limit-chars", "hyphens", "icon", "image-orientation", "image-rendering", "image-resolution", "ime-mode", "initial-letter", "initial-letter-align", "inline-size", "inset", "inset-area", "inset-block", "inset-block-end", "inset-block-start", "inset-inline", "inset-inline-end", "inset-inline-start", "isolation", "justify-content", "justify-items", "justify-self", "kerning", "left", "letter-spacing", "lighting-color", "line-break", "line-height", "line-height-step", "list-style", "list-style-image", "list-style-position", "list-style-type", "margin", "margin-block", "margin-block-end", "margin-block-start", "margin-bottom", "margin-inline", "margin-inline-end", "margin-inline-start", "margin-left", "margin-right", "margin-top", "margin-trim", "marker", "marker-end", "marker-mid", "marker-start", "marks", "mask", "mask-border", "mask-border-mode", "mask-border-outset", "mask-border-repeat", "mask-border-slice", "mask-border-source", "mask-border-width", "mask-clip", "mask-composite", "mask-image", "mask-mode", "mask-origin", "mask-position", "mask-repeat", "mask-size", "mask-type", "masonry-auto-flow", "math-depth", "math-shift", "math-style", "max-block-size", "max-height", "max-inline-size", "max-width", "min-block-size", "min-height", "min-inline-size", "min-width", "mix-blend-mode", "nav-down", "nav-index", "nav-left", "nav-right", "nav-up", "none", "normal", "object-fit", "object-position", "offset", "offset-anchor", "offset-distance", "offset-path", "offset-position", "offset-rotate", "opacity", "order", "orphans", "outline", "outline-color", "outline-offset", "outline-style", "outline-width", "overflow", "overflow-anchor", "overflow-block", "overflow-clip-margin", "overflow-inline", "overflow-wrap", "overflow-x", "overflow-y", "overlay", "overscroll-behavior", "overscroll-behavior-block", "overscroll-behavior-inline", "overscroll-behavior-x", "overscroll-behavior-y", "padding", "padding-block", "padding-block-end", "padding-block-start", "padding-bottom", "padding-inline", "padding-inline-end", "padding-inline-start", "padding-left", "padding-right", "padding-top", "page", "page-break-after", "page-break-before", "page-break-inside", "paint-order", "pause", "pause-after", "pause-before", "perspective", "perspective-origin", "place-content", "place-items", "place-self", "pointer-events", "position", "position-anchor", "position-visibility", "print-color-adjust", "quotes", "r", "resize", "rest", "rest-after", "rest-before", "right", "rotate", "row-gap", "ruby-align", "ruby-position", "scale", "scroll-behavior", "scroll-margin", "scroll-margin-block", "scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom", "scroll-margin-inline", "scroll-margin-inline-end", "scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right", "scroll-margin-top", "scroll-padding", "scroll-padding-block", "scroll-padding-block-end", "scroll-padding-block-start", "scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end", "scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right", "scroll-padding-top", "scroll-snap-align", "scroll-snap-stop", "scroll-snap-type", "scroll-timeline", "scroll-timeline-axis", "scroll-timeline-name", "scrollbar-color", "scrollbar-gutter", "scrollbar-width", "shape-image-threshold", "shape-margin", "shape-outside", "shape-rendering", "speak", "speak-as", "src", "stop-color", "stop-opacity", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "tab-size", "table-layout", "text-align", "text-align-all", "text-align-last", "text-anchor", "text-combine-upright", "text-decoration", "text-decoration-color", "text-decoration-line", "text-decoration-skip", "text-decoration-skip-ink", "text-decoration-style", "text-decoration-thickness", "text-emphasis", "text-emphasis-color", "text-emphasis-position", "text-emphasis-style", "text-indent", "text-justify", "text-orientation", "text-overflow", "text-rendering", "text-shadow", "text-size-adjust", "text-transform", "text-underline-offset", "text-underline-position", "text-wrap", "text-wrap-mode", "text-wrap-style", "timeline-scope", "top", "touch-action", "transform", "transform-box", "transform-origin", "transform-style", "transition", "transition-behavior", "transition-delay", "transition-duration", "transition-property", "transition-timing-function", "translate", "unicode-bidi", "user-modify", "user-select", "vector-effect", "vertical-align", "view-timeline", "view-timeline-axis", "view-timeline-inset", "view-timeline-name", "view-transition-name", "visibility", "voice-balance", "voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress", "voice-volume", "white-space", "white-space-collapse", "widows", "width", "will-change", "word-break", "word-spacing", "word-wrap", "writing-mode", "x", "y", "z-index", "zoom"].sort().reverse();
638
- var Kn = Object.defineProperty, Xn = Object.getOwnPropertyDescriptor, fe = (t, l, i, f) => {
639
- for (var m, b = f > 1 ? void 0 : f ? Xn(l, i) : l, v = t.length - 1; v >= 0; v--) (m = t[v]) && (b = (f ? m(l, i, b) : m(b)) || b);
640
- return f && b && Kn(l, i, b), b;
641
- };
642
- ae.registerLanguage("xml", an), ae.registerLanguage("html", an), ae.registerLanguage("javascript", function(t) {
643
- const l = t.regex, i = rn, f = "<>", m = "</>", b = { begin: /<[A-Za-z0-9\\._:-]+/, end: /\/[A-Za-z0-9\\._:-]+>|\/>/, isTrulyOpeningTag: (L, Y) => {
644
- const ee = L[0].length + L.index, ne = L.input[ee];
645
- if (ne === "<" || ne === ",") return void Y.ignoreMatch();
646
- let te;
647
- ne === ">" && (((me, { after: ce }) => {
648
- const Ne = "</" + me[0].slice(1);
649
- return me.input.indexOf(Ne, ce) !== -1;
650
- })(L, { after: ee }) || Y.ignoreMatch());
651
- const pe = L.input.substring(ee);
652
- ((te = pe.match(/^\s*=/)) || (te = pe.match(/^\s+extends\s+/)) && te.index === 0) && Y.ignoreMatch();
653
- } }, v = { $pattern: rn, keyword: Bn, literal: zn, built_in: Dn, "variable.language": $n }, A = "[0-9](_?[0-9])*", M = `\\.(${A})`, D = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", G = { className: "number", variants: [{ begin: `(\\b(${D})((${M})|\\.)?|(${M}))[eE][+-]?(${A})\\b` }, { begin: `\\b(${D})\\b((${M})\\b|\\.)?|(${M})\\b` }, { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" }, { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, { begin: "\\b0[0-7]+n?\\b" }], relevance: 0 }, T = { className: "subst", begin: "\\$\\{", end: "\\}", keywords: v, contains: [] }, U = { begin: ".?html`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "xml" } }, P = { begin: ".?css`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "css" } }, F = { begin: ".?gql`", end: "", starts: { end: "`", returnEnd: !1, contains: [t.BACKSLASH_ESCAPE, T], subLanguage: "graphql" } }, K = { className: "string", begin: "`", end: "`", contains: [t.BACKSLASH_ESCAPE, T] }, X = { className: "comment", variants: [t.COMMENT(/\/\*\*(?!\/)/, "\\*/", { relevance: 0, contains: [{ begin: "(?=@[A-Za-z]+)", relevance: 0, contains: [{ className: "doctag", begin: "@[A-Za-z]+" }, { className: "type", begin: "\\{", end: "\\}", excludeEnd: !0, excludeBegin: !0, relevance: 0 }, { className: "variable", begin: i + "(?=\\s*(-)|$)", endsParent: !0, relevance: 0 }, { begin: /(?=[^\n])\s/, relevance: 0 }] }] }), t.C_BLOCK_COMMENT_MODE, t.C_LINE_COMMENT_MODE] }, V = [t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, U, P, F, K, { match: /\$\d+/ }, G];
654
- T.contains = V.concat({ begin: /\{/, end: /\}/, keywords: v, contains: ["self"].concat(V) });
655
- const re = [].concat(X, T.contains), W = re.concat([{ begin: /(\s*)\(/, end: /\)/, keywords: v, contains: ["self"].concat(re) }]), H = { className: "params", begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: v, contains: W }, ve = { variants: [{ match: [/class/, /\s+/, i, /\s+/, /extends/, /\s+/, l.concat(i, "(", l.concat(/\./, i), ")*")], scope: { 1: "keyword", 3: "title.class", 5: "keyword", 7: "title.class.inherited" } }, { match: [/class/, /\s+/, i], scope: { 1: "keyword", 3: "title.class" } }] }, oe = { relevance: 0, match: l.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/), className: "title.class", keywords: { _: [...dn, ...gn] } }, Q = { variants: [{ match: [/function/, /\s+/, i, /(?=\s*\()/] }, { match: [/function/, /\s*(?=\()/] }], className: { 1: "keyword", 3: "title.function" }, label: "func.def", contains: [H], illegal: /%/ }, xe = { match: l.concat(/\b/, (ue = [...un, "super", "import"].map((L) => `${L}\\s*\\(`), l.concat("(?!", ue.join("|"), ")")), i, l.lookahead(/\s*\(/)), className: "title.function", relevance: 0 };
656
- var ue;
657
- const se = { begin: l.concat(/\./, l.lookahead(l.concat(i, /(?![0-9A-Za-z$_(])/))), end: i, excludeBegin: !0, keywords: "prototype", className: "property", relevance: 0 }, ke = { match: [/get|set/, /\s+/, i, /(?=\()/], className: { 1: "keyword", 3: "title.function" }, contains: [{ begin: /\(\)/ }, H] }, he = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + t.UNDERSCORE_IDENT_RE + ")\\s*=>", _e = { match: [/const|var|let/, /\s+/, i, /\s*/, /=\s*/, /(async\s*)?/, l.lookahead(he)], keywords: "async", className: { 1: "keyword", 3: "title.function" }, contains: [H] };
658
- return { name: "JavaScript", aliases: ["js", "jsx", "mjs", "cjs"], keywords: v, exports: { PARAMS_CONTAINS: W, CLASS_REFERENCE: oe }, illegal: /#(?![$_A-z])/, contains: [t.SHEBANG({ label: "shebang", binary: "node", relevance: 5 }), { label: "use_strict", className: "meta", relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ }, t.APOS_STRING_MODE, t.QUOTE_STRING_MODE, U, P, F, K, X, { match: /\$\d+/ }, G, oe, { scope: "attr", match: i + l.lookahead(":"), relevance: 0 }, _e, { begin: "(" + t.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", keywords: "return throw case", relevance: 0, contains: [X, t.REGEXP_MODE, { className: "function", begin: he, returnBegin: !0, end: "\\s*=>", contains: [{ className: "params", variants: [{ begin: t.UNDERSCORE_IDENT_RE, relevance: 0 }, { className: null, begin: /\(\s*\)/, skip: !0 }, { begin: /(\s*)\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: v, contains: W }] }] }, { begin: /,/, relevance: 0 }, { match: /\s+/, relevance: 0 }, { variants: [{ begin: f, end: m }, { match: /<[A-Za-z0-9\\._:-]+\s*\/>/ }, { begin: b.begin, "on:begin": b.isTrulyOpeningTag, end: b.end }], subLanguage: "xml", contains: [{ begin: b.begin, end: b.end, skip: !0, contains: ["self"] }] }] }, Q, { beginKeywords: "while if switch catch for" }, { begin: "\\b(?!function)" + t.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", returnBegin: !0, label: "func.def", contains: [H, t.inherit(t.TITLE_MODE, { begin: i, className: "title.function" })] }, { match: /\.\.\./, relevance: 0 }, se, { match: "\\$" + i, relevance: 0 }, { match: [/\bconstructor(?=\s*\()/], className: { 1: "title.function" }, contains: [H] }, xe, { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: "variable.constant" }, ve, ke, { match: /\$[(.]/ }] };
659
- }), ae.registerLanguage("typescript", function(t) {
660
- const l = t.regex, i = Pn(t), f = Ie, m = ["any", "void", "number", "boolean", "string", "object", "never", "symbol", "bigint", "unknown"], b = { begin: [/namespace/, /\s+/, t.IDENT_RE], beginScope: { 1: "keyword", 3: "title.class" } }, v = { beginKeywords: "interface", end: /\{/, excludeEnd: !0, keywords: { keyword: "interface extends", built_in: m }, contains: [i.exports.CLASS_REFERENCE] }, A = { $pattern: Ie, keyword: hn.concat(["type", "interface", "public", "private", "protected", "implements", "declare", "abstract", "readonly", "enum", "override", "satisfies"]), literal: pn, built_in: vn.concat(m), "variable.language": yn }, M = { className: "meta", begin: "@" + f }, D = (U, P, F) => {
661
- const K = U.contains.findIndex((X) => X.label === P);
662
- if (K === -1) throw new Error("can not find mode to replace");
663
- U.contains.splice(K, 1, F);
664
- };
665
- Object.assign(i.keywords, A), i.exports.PARAMS_CONTAINS.push(M);
666
- const G = i.contains.find((U) => U.scope === "attr"), T = Object.assign({}, G, { match: l.concat(f, l.lookahead(/\s*\?:/)) });
667
- return i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE, G, T]), i.contains = i.contains.concat([M, b, v, T]), D(i, "shebang", t.SHEBANG()), D(i, "use_strict", { className: "meta", relevance: 10, begin: /^\s*['"]use strict['"]/ }), i.contains.find((U) => U.label === "func.def").relevance = 0, Object.assign(i, { name: "TypeScript", aliases: ["ts", "tsx", "mts", "cts"] }), i;
668
- }), ae.registerLanguage("css", function(t) {
669
- const l = t.regex, i = ((m) => ({ IMPORTANT: { scope: "meta", begin: "!important" }, BLOCK_COMMENT: m.C_BLOCK_COMMENT_MODE, HEXCOLOR: { scope: "number", begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/ }, FUNCTION_DISPATCH: { className: "built_in", begin: /[\w-]+(?=\()/ }, ATTRIBUTE_SELECTOR_MODE: { scope: "selector-attr", begin: /\[/, end: /\]/, illegal: "$", contains: [m.APOS_STRING_MODE, m.QUOTE_STRING_MODE] }, CSS_NUMBER_MODE: { scope: "number", begin: m.NUMBER_RE + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", relevance: 0 }, CSS_VARIABLE: { className: "attr", begin: /--[A-Za-z_][A-Za-z0-9_-]*/ } }))(t), f = [t.APOS_STRING_MODE, t.QUOTE_STRING_MODE];
670
- return { name: "CSS", case_insensitive: !0, illegal: /[=|'\$]/, keywords: { keyframePosition: "from to" }, classNameAliases: { keyframePosition: "selector-tag" }, contains: [i.BLOCK_COMMENT, { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, i.CSS_NUMBER_MODE, { className: "selector-id", begin: /#[A-Za-z0-9_-]+/, relevance: 0 }, { className: "selector-class", begin: "\\.[a-zA-Z-][a-zA-Z0-9_-]*", relevance: 0 }, i.ATTRIBUTE_SELECTOR_MODE, { className: "selector-pseudo", variants: [{ begin: ":(" + Zn.join("|") + ")" }, { begin: ":(:)?(" + Gn.join("|") + ")" }] }, i.CSS_VARIABLE, { className: "attribute", begin: "\\b(" + Fn.join("|") + ")\\b" }, { begin: /:/, end: /[;}{]/, contains: [i.BLOCK_COMMENT, i.HEXCOLOR, i.IMPORTANT, i.CSS_NUMBER_MODE, ...f, { begin: /(url|data-uri)\(/, end: /\)/, relevance: 0, keywords: { built_in: "url data-uri" }, contains: [...f, { className: "string", begin: /[^)]/, endsWithParent: !0, excludeEnd: !0 }] }, i.FUNCTION_DISPATCH] }, { begin: l.lookahead(/@/), end: "[{;]", relevance: 0, illegal: /:/, contains: [{ className: "keyword", begin: /@-?\w[\w]*(-\w+)*/ }, { begin: /\s/, endsWithParent: !0, excludeEnd: !0, relevance: 0, keywords: { $pattern: /[a-z-]+/, keyword: "and or not only", attribute: Hn.join(" ") }, contains: [{ begin: /[a-z-]+(?=:)/, className: "attribute" }, ...f, i.CSS_NUMBER_MODE] }] }, { className: "selector-tag", begin: "\\b(" + Un.join("|") + ")\\b" }] };
671
- }), ae.registerLanguage("json", function(t) {
672
- const l = ["true", "false", "null"], i = { scope: "literal", beginKeywords: l.join(" ") };
673
- return { name: "JSON", aliases: ["jsonc"], keywords: { literal: l }, contains: [{ className: "attr", begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/, relevance: 1.01 }, { match: /[{}[\],:]/, className: "punctuation", relevance: 0 }, t.QUOTE_STRING_MODE, i, t.C_NUMBER_MODE, t.C_LINE_COMMENT_MODE, t.C_BLOCK_COMMENT_MODE], illegal: "\\S" };
674
- }), ae.registerLanguage("bash", function(t) {
675
- const l = t.regex, i = {}, f = { begin: /\$\{/, end: /\}/, contains: ["self", { begin: /:-/, contains: [i] }] };
676
- Object.assign(i, { className: "variable", variants: [{ begin: l.concat(/\$[\w\d#@][\w\d_]*/, "(?![\\w\\d])(?![$])") }, f] });
677
- const m = { className: "subst", begin: /\$\(/, end: /\)/, contains: [t.BACKSLASH_ESCAPE] }, b = t.inherit(t.COMMENT(), { match: [/(^|\s)/, /#.*$/], scope: { 2: "comment" } }), v = { begin: /<<-?\s*(?=\w+)/, starts: { contains: [t.END_SAME_AS_BEGIN({ begin: /(\w+)/, end: /(\w+)/, className: "string" })] } }, A = { className: "string", begin: /"/, end: /"/, contains: [t.BACKSLASH_ESCAPE, i, m] };
678
- m.contains.push(A);
679
- const M = { begin: /\$?\(\(/, end: /\)\)/, contains: [{ begin: /\d+#[0-9a-f]+/, className: "number" }, t.NUMBER_MODE, i] }, D = t.SHEBANG({ binary: `(${["fish", "bash", "zsh", "sh", "csh", "ksh", "tcsh", "dash", "scsh"].join("|")})`, relevance: 10 }), G = { className: "function", begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/, returnBegin: !0, contains: [t.inherit(t.TITLE_MODE, { begin: /\w[\w\d_]*/ })], relevance: 0 };
680
- return { name: "Bash", aliases: ["sh", "zsh"], keywords: { $pattern: /\b[a-z][a-z0-9._-]+\b/, keyword: ["if", "then", "else", "elif", "fi", "time", "for", "while", "until", "in", "do", "done", "case", "esac", "coproc", "function", "select"], literal: ["true", "false"], built_in: ["break", "cd", "continue", "eval", "exec", "exit", "export", "getopts", "hash", "pwd", "readonly", "return", "shift", "test", "times", "trap", "umask", "unset", "alias", "bind", "builtin", "caller", "command", "declare", "echo", "enable", "help", "let", "local", "logout", "mapfile", "printf", "read", "readarray", "source", "sudo", "type", "typeset", "ulimit", "unalias", "set", "shopt", "autoload", "bg", "bindkey", "bye", "cap", "chdir", "clone", "comparguments", "compcall", "compctl", "compdescribe", "compfiles", "compgroups", "compquote", "comptags", "comptry", "compvalues", "dirs", "disable", "disown", "echotc", "echoti", "emulate", "fc", "fg", "float", "functions", "getcap", "getln", "history", "integer", "jobs", "kill", "limit", "log", "noglob", "popd", "print", "pushd", "pushln", "rehash", "sched", "setcap", "setopt", "stat", "suspend", "ttyctl", "unfunction", "unhash", "unlimit", "unsetopt", "vared", "wait", "whence", "where", "which", "zcompile", "zformat", "zftp", "zle", "zmodload", "zparseopts", "zprof", "zpty", "zregexparse", "zsocket", "zstyle", "ztcp", "chcon", "chgrp", "chown", "chmod", "cp", "dd", "df", "dir", "dircolors", "ln", "ls", "mkdir", "mkfifo", "mknod", "mktemp", "mv", "realpath", "rm", "rmdir", "shred", "sync", "touch", "truncate", "vdir", "b2sum", "base32", "base64", "cat", "cksum", "comm", "csplit", "cut", "expand", "fmt", "fold", "head", "join", "md5sum", "nl", "numfmt", "od", "paste", "ptx", "pr", "sha1sum", "sha224sum", "sha256sum", "sha384sum", "sha512sum", "shuf", "sort", "split", "sum", "tac", "tail", "tr", "tsort", "unexpand", "uniq", "wc", "arch", "basename", "chroot", "date", "dirname", "du", "echo", "env", "expr", "factor", "groups", "hostid", "id", "link", "logname", "nice", "nohup", "nproc", "pathchk", "pinky", "printenv", "printf", "pwd", "readlink", "runcon", "seq", "sleep", "stat", "stdbuf", "stty", "tee", "test", "timeout", "tty", "uname", "unlink", "uptime", "users", "who", "whoami", "yes"] }, contains: [D, t.SHEBANG(), G, M, b, v, { match: /(\/[a-z._-]+)+/ }, A, { match: /\\"/ }, { className: "string", begin: /'/, end: /'/ }, { match: /\\'/ }, i] };
681
- });
682
- let ge = class extends on(sn`
683
- :host {
684
- display: block;
685
- width: 100%;
686
- overflow: hidden;
687
- }
688
-
689
- /* Highlight.js theme using Schmancy colors */
690
- .hljs {
691
- color: var(--schmancy-sys-color-surface-on);
692
- background: transparent;
693
- }
694
- .hljs-comment,
695
- .hljs-quote,
696
- .hljs-deletion {
697
- color: var(--schmancy-sys-color-surface-onVariant);
698
- opacity: 0.6;
699
- font-style: italic;
700
- }
701
- .hljs-keyword,
702
- .hljs-selector-tag,
703
- .hljs-built_in,
704
- .hljs-tag .hljs-name {
705
- color: var(--schmancy-sys-color-primary-default);
706
- font-weight: 500;
707
- }
708
- .hljs-string,
709
- .hljs-regexp,
710
- .hljs-addition,
711
- .hljs-selector-attr,
712
- .hljs-selector-pseudo {
713
- color: var(--schmancy-sys-color-success-default);
714
- }
715
- .hljs-number,
716
- .hljs-literal,
717
- .hljs-variable,
718
- .hljs-template-variable,
719
- .hljs-tag .hljs-attr {
720
- color: var(--schmancy-sys-color-tertiary-default);
721
- }
722
- .hljs-title,
723
- .hljs-section,
724
- .hljs-selector-id,
725
- .hljs-function .hljs-title {
726
- color: var(--schmancy-sys-color-secondary-default);
727
- font-weight: 500;
728
- }
729
- .hljs-type,
730
- .hljs-class .hljs-title,
731
- .hljs-title.class_,
732
- .hljs-doctag {
733
- color: var(--schmancy-sys-color-secondary-container);
734
- font-weight: 500;
735
- }
736
- .hljs-attribute,
737
- .hljs-attr,
738
- .hljs-meta {
739
- color: var(--schmancy-sys-color-primary-container);
740
- }
741
- .hljs-punctuation {
742
- color: var(--schmancy-sys-color-surface-onVariant);
743
- opacity: 0.8;
744
- }
745
- .hljs-tag {
746
- color: var(--schmancy-sys-color-surface-onVariant);
747
- }
748
- .hljs-strong,
749
- .hljs-name {
750
- font-weight: 600;
751
- }
752
- .hljs-emphasis {
753
- font-style: italic;
754
- }
755
- .hljs-link {
756
- color: var(--schmancy-sys-color-primary-default);
757
- text-decoration: underline;
758
- }
759
- `) {
760
- constructor() {
761
- super(...arguments), this.language = "javascript", this.code = "", this.lineNumbers = !1, this.copyButton = !0, this.copied = !1;
762
- }
763
- get highlightedCode() {
764
- if (!this.code) return "";
765
- try {
766
- const t = ae.highlight(this.code.trim(), { language: this.language });
767
- return this.lineNumbers ? this.addLineNumbers(t.value) : t.value;
768
- } catch {
769
- const t = ae.highlightAuto(this.code.trim());
770
- return this.lineNumbers ? this.addLineNumbers(t.value) : t.value;
771
- }
772
- }
773
- addLineNumbers(t) {
774
- return t.split(`
775
- `).map((l, i) => `<span class="block"><span class="inline-block w-12 pr-4 text-right text-surface-onVariant opacity-50 select-none text-sm">${i + 1}</span>${l}</span>`).join(`
776
- `);
777
- }
778
- async copyCode() {
779
- try {
780
- await navigator.clipboard.writeText(this.code), this.copied = !0, setTimeout(() => {
781
- this.copied = !1;
782
- }, 2e3);
783
- } catch {
784
- }
785
- }
786
- getLanguageLabel() {
787
- return this.filename ? this.filename : { javascript: "JavaScript", typescript: "TypeScript", html: "HTML", xml: "XML", css: "CSS", json: "JSON", bash: "Bash", sh: "Shell", jsx: "JSX", tsx: "TSX" }[this.language] || this.language.toUpperCase();
788
- }
789
- render() {
790
- return He`
791
- <schmancy-theme mode="dark">
792
- <div class="border border-outline rounded-lg bg-surface-dim overflow-hidden">
793
- <!-- Header -->
794
- <div class="flex items-center justify-between px-4 py-3 bg-surface-container border-b border-outline">
795
- <span class="text-sm font-medium text-surface-onVariant opacity-80">
796
- ${this.getLanguageLabel()}
797
- </span>
798
- ${this.copyButton ? He`
799
- <schmancy-button
800
- .variant="${this.copied ? "filled" : "outlined"}"
801
- @click=${this.copyCode}
802
- >
803
- <schmancy-icon size="16px">
804
- ${this.copied ? "check" : "content_copy"}
805
- </schmancy-icon>
806
- ${this.copied ? "Copied!" : "Copy"}
807
- </schmancy-button>
808
- ` : ""}
809
- </div>
810
-
811
- <!-- Code -->
812
- <div class="overflow-x-auto">
813
- <pre class="p-6 m-0 min-w-0"><code class="text-sm whitespace-pre" .innerHTML=${this.highlightedCode}></code></pre>
814
- </div>
815
- </div>
816
- </schmancy-theme>
817
- `;
818
- }
819
- };
820
- fe([ye({ type: String })], ge.prototype, "language", 2), fe([ye({ type: String })], ge.prototype, "code", 2), fe([ye({ type: String })], ge.prototype, "filename", 2), fe([ye({ type: Boolean })], ge.prototype, "lineNumbers", 2), fe([ye({ type: Boolean })], ge.prototype, "copyButton", 2), fe([cn()], ge.prototype, "copied", 2), ge = fe([ln("schmancy-code")], ge);
821
- var Wn = Object.defineProperty, qn = Object.getOwnPropertyDescriptor, Ce = (t, l, i, f) => {
822
- for (var m, b = f > 1 ? void 0 : f ? qn(l, i) : l, v = t.length - 1; v >= 0; v--) (m = t[v]) && (b = (f ? m(l, i, b) : m(b)) || b);
823
- return f && b && Wn(l, i, b), b;
824
- };
825
- let Ae = class extends on(sn`:host{
826
- display:block;
827
- overflow:hidden;
828
- position:relative;
829
- inset:0;
830
- }`) {
831
- constructor() {
832
- super(...arguments), this.language = "html", this.layout = "vertical", this.slotContent = "";
833
- }
834
- connectedCallback() {
835
- super.connectedCallback(), setTimeout(() => {
836
- var l;
837
- const t = (l = this.shadowRoot) == null ? void 0 : l.querySelector("slot");
838
- if (t) {
839
- const i = t.assignedNodes({ flatten: !0 }).map((m) => m.nodeType === Node.ELEMENT_NODE ? m.outerHTML : m.nodeType === Node.TEXT_NODE && m.textContent || "").join("").split(`
840
- `), f = i.filter((m) => m.trim().length > 0).reduce((m, b) => {
841
- var A;
842
- const v = ((A = b.match(/^(\s*)/)) == null ? void 0 : A[1].length) || 0;
843
- return Math.min(m, v);
844
- }, 1 / 0);
845
- this.slotContent = i.map((m) => m.slice(f)).join(`
846
- `).trim();
847
- }
848
- }, 0);
849
- }
850
- render() {
851
- const t = this.layout === "horizontal" ? "grid grid-cols-1 lg:grid-cols-2 gap-0" : "flex flex-col";
852
- return He`
853
- <schmancy-surface class="rounded-lg overflow-hidden">
854
- <div class="${t}">
855
- <!-- Code section with proper overflow handling -->
856
- <div class="min-w-0 overflow-hidden">
857
- <schmancy-code
858
- language="${this.language}"
859
- .code="${this.slotContent}"
860
- ?copyButton="${!0}"
861
- class="block w-full"
862
- ></schmancy-code>
863
- </div>
864
-
865
- <!-- Preview section with proper overflow handling -->
866
- <div class="min-w-0 overflow-auto">
867
- <schmancy-surface type="surfaceBright" class="p-6 h-full">
868
- <slot></slot>
869
- </schmancy-surface>
870
- </div>
871
- </div>
872
- </schmancy-surface>
873
- `;
874
- }
875
- };
876
- Ce([ye({ type: String })], Ae.prototype, "language", 2), Ce([ye({ type: String })], Ae.prototype, "layout", 2), Ce([cn()], Ae.prototype, "slotContent", 2), Ae = Ce([ln("schmancy-code-preview")], Ae);
877
- export {
878
- ge as S,
879
- Ae as a
880
- };
881
- //# sourceMappingURL=code-preview-BAuQVO86.js.map