@ebrains/components 0.0.1-alpha.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 (1089) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/arrow-diagonal-black-0eb8640e.js +5 -0
  3. package/dist/cjs/arrow-right-3e38e8a9.js +7 -0
  4. package/dist/cjs/bluesky-eb0d6051.js +16 -0
  5. package/dist/cjs/chevron-down-27344777.js +14 -0
  6. package/dist/cjs/chevron-left-6fc9c6ef.js +13 -0
  7. package/dist/cjs/chevron-right-6d95a117.js +7 -0
  8. package/dist/cjs/chevron-up-e37d7713.js +14 -0
  9. package/dist/cjs/close-51284af5.js +7 -0
  10. package/dist/cjs/color-ac51ccf7.js +342 -0
  11. package/dist/cjs/color-primary-palette.cjs.entry.js +43 -0
  12. package/dist/cjs/color-primary-palette_6.cjs.entry.js +327 -0
  13. package/dist/cjs/color-secondary-palette.cjs.entry.js +68 -0
  14. package/dist/cjs/color-support-palette.cjs.entry.js +59 -0
  15. package/dist/cjs/components.cjs.js +52 -0
  16. package/dist/cjs/copy-53102d0c.js +7 -0
  17. package/dist/cjs/correct-use-of-colors.cjs.entry.js +68 -0
  18. package/dist/cjs/eds-accordion.cjs.entry.js +92 -0
  19. package/dist/cjs/eds-accordion_23.cjs.entry.js +1886 -0
  20. package/dist/cjs/eds-alert.cjs.entry.js +95 -0
  21. package/dist/cjs/eds-avatar.cjs.entry.js +73 -0
  22. package/dist/cjs/eds-block-break.cjs.entry.js +20 -0
  23. package/dist/cjs/eds-breadcrumb.cjs.entry.js +152 -0
  24. package/dist/cjs/eds-button.cjs.entry.js +233 -0
  25. package/dist/cjs/eds-card-desc.cjs.entry.js +26 -0
  26. package/dist/cjs/eds-card-desc_3.cjs.entry.js +117 -0
  27. package/dist/cjs/eds-card-generic.cjs.entry.js +93 -0
  28. package/dist/cjs/eds-card-project.cjs.entry.js +67 -0
  29. package/dist/cjs/eds-card-section.cjs.entry.js +43 -0
  30. package/dist/cjs/eds-card-tags.cjs.entry.js +21 -0
  31. package/dist/cjs/eds-card-title.cjs.entry.js +56 -0
  32. package/dist/cjs/eds-card-tool.cjs.entry.js +79 -0
  33. package/dist/cjs/eds-card-wrapper.cjs.entry.js +32 -0
  34. package/dist/cjs/eds-code-block.cjs.entry.js +2472 -0
  35. package/dist/cjs/eds-components-section.cjs.entry.js +96 -0
  36. package/dist/cjs/eds-docs-palettes.cjs.entry.js +27 -0
  37. package/dist/cjs/eds-docs-tokens.cjs.entry.js +35 -0
  38. package/dist/cjs/eds-dropdown.cjs.entry.js +129 -0
  39. package/dist/cjs/eds-footer.cjs.entry.js +49 -0
  40. package/dist/cjs/eds-form.cjs.entry.js +249 -0
  41. package/dist/cjs/eds-frame.cjs.entry.js +91 -0
  42. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +99 -0
  43. package/dist/cjs/eds-header.cjs.entry.js +96 -0
  44. package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +18 -0
  45. package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +18 -0
  46. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +18 -0
  47. package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +18 -0
  48. package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +18 -0
  49. package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +18 -0
  50. package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +18 -0
  51. package/dist/cjs/eds-icon-close.cjs.entry.js +18 -0
  52. package/dist/cjs/eds-icon-copy.cjs.entry.js +18 -0
  53. package/dist/cjs/eds-icon-eu.cjs.entry.js +18 -0
  54. package/dist/cjs/eds-icon-facebook.cjs.entry.js +18 -0
  55. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +18 -0
  56. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +18 -0
  57. package/dist/cjs/eds-icon-loader.cjs.entry.js +18 -0
  58. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +18 -0
  59. package/dist/cjs/eds-icon-menu.cjs.entry.js +18 -0
  60. package/dist/cjs/eds-icon-more.cjs.entry.js +18 -0
  61. package/dist/cjs/eds-icon-search.cjs.entry.js +18 -0
  62. package/dist/cjs/eds-icon-success.cjs.entry.js +18 -0
  63. package/dist/cjs/eds-icon-twitter.cjs.entry.js +18 -0
  64. package/dist/cjs/eds-icon-user.cjs.entry.js +18 -0
  65. package/dist/cjs/eds-icon-wrapper.cjs.entry.js +40 -0
  66. package/dist/cjs/eds-icon-youtube.cjs.entry.js +18 -0
  67. package/dist/cjs/eds-img.cjs.entry.js +57 -0
  68. package/dist/cjs/eds-input-field.cjs.entry.js +72 -0
  69. package/dist/cjs/eds-input-footer.cjs.entry.js +21 -0
  70. package/dist/cjs/eds-input-label.cjs.entry.js +20 -0
  71. package/dist/cjs/eds-input-range.cjs.entry.js +39 -0
  72. package/dist/cjs/eds-input-search.cjs.entry.js +41 -0
  73. package/dist/cjs/eds-input-select.cjs.entry.js +30 -0
  74. package/dist/cjs/eds-input.cjs.entry.js +68 -0
  75. package/dist/cjs/eds-link.cjs.entry.js +211 -0
  76. package/dist/cjs/eds-login.cjs.entry.js +72 -0
  77. package/dist/cjs/eds-logo.cjs.entry.js +76 -0
  78. package/dist/cjs/eds-matomo-notice.cjs.entry.js +109 -0
  79. package/dist/cjs/eds-modal.cjs.entry.js +46 -0
  80. package/dist/cjs/eds-navigator.cjs.entry.js +43 -0
  81. package/dist/cjs/eds-pagination.cjs.entry.js +211 -0
  82. package/dist/cjs/eds-progress-bar.cjs.entry.js +28 -0
  83. package/dist/cjs/eds-rating.cjs.entry.js +57 -0
  84. package/dist/cjs/eds-section-core.cjs.entry.js +23 -0
  85. package/dist/cjs/eds-section-core_2.cjs.entry.js +59 -0
  86. package/dist/cjs/eds-section-heading.cjs.entry.js +41 -0
  87. package/dist/cjs/eds-social-networks.cjs.entry.js +65 -0
  88. package/dist/cjs/eds-svg-repository.cjs.entry.js +32 -0
  89. package/dist/cjs/eds-tab.cjs.entry.js +40 -0
  90. package/dist/cjs/eds-table.cjs.entry.js +142 -0
  91. package/dist/cjs/eds-tabs-content.cjs.entry.js +133 -0
  92. package/dist/cjs/eds-tabs.cjs.entry.js +122 -0
  93. package/dist/cjs/eds-tag.cjs.entry.js +44 -0
  94. package/dist/cjs/eds-toast-manager.cjs.entry.js +45 -0
  95. package/dist/cjs/eds-toast.cjs.entry.js +53 -0
  96. package/dist/cjs/eds-tooltip.cjs.entry.js +99 -0
  97. package/dist/cjs/eds-user-modal.cjs.entry.js +47 -0
  98. package/dist/cjs/eds-user.cjs.entry.js +90 -0
  99. package/dist/cjs/eu-b9665157.js +32 -0
  100. package/dist/cjs/facebook-7aa65e57.js +16 -0
  101. package/dist/cjs/gradient-primary-palette.cjs.entry.js +45 -0
  102. package/dist/cjs/gradient-secondary-palette.cjs.entry.js +79 -0
  103. package/dist/cjs/gradient-support-palette.cjs.entry.js +63 -0
  104. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +50 -0
  105. package/dist/cjs/index-1ff5f25c.js +48 -0
  106. package/dist/cjs/index-2cc3495f.js +2149 -0
  107. package/dist/cjs/index-383d2951.js +3449 -0
  108. package/dist/cjs/index-96a4261e.js +405 -0
  109. package/dist/cjs/index-ab9fbefe.js +48 -0
  110. package/dist/cjs/index-f62478aa.js +1837 -0
  111. package/dist/cjs/index.cjs.js +2 -0
  112. package/dist/cjs/keycloak-5aaa21af.js +1900 -0
  113. package/dist/cjs/keycloak-940b83c1.js +1910 -0
  114. package/dist/cjs/linkedin-46b0dd56.js +30 -0
  115. package/dist/cjs/loader-5efe2c21.js +35 -0
  116. package/dist/cjs/loader.cjs.js +15 -0
  117. package/dist/cjs/logo-color-6c787ac1.js +117 -0
  118. package/dist/cjs/logo-color-margins-b49c0f46.js +120 -0
  119. package/dist/cjs/logo-space.cjs.entry.js +20 -0
  120. package/dist/cjs/logo-variations-horizontal.cjs.entry.js +30 -0
  121. package/dist/cjs/logo-variations-vertical.cjs.entry.js +30 -0
  122. package/dist/cjs/logo-white-no-bg-4a0e0f4b.js +1039 -0
  123. package/dist/cjs/logo-wrong-usage.cjs.entry.js +20 -0
  124. package/dist/cjs/mastodon-20c5bb7d.js +16 -0
  125. package/dist/cjs/menu-7050a6d1.js +13 -0
  126. package/dist/cjs/mono-2f3cd653.js +13 -0
  127. package/dist/cjs/more-1d3dd8bc.js +15 -0
  128. package/dist/cjs/search-5533d877.js +14 -0
  129. package/dist/cjs/shadow-css-988e4292.js +334 -0
  130. package/dist/cjs/success-ef661a11.js +20 -0
  131. package/dist/cjs/toastManager-1fb1a402.js +33 -0
  132. package/dist/cjs/token-list.cjs.entry.js +253 -0
  133. package/dist/cjs/token-list_3.cjs.entry.js +300 -0
  134. package/dist/cjs/token-radii.cjs.entry.js +25 -0
  135. package/dist/cjs/token-ratios.cjs.entry.js +29 -0
  136. package/dist/cjs/token-shadows.cjs.entry.js +34 -0
  137. package/dist/cjs/token-spacing.cjs.entry.js +16 -0
  138. package/dist/cjs/token-typography.cjs.entry.js +230 -0
  139. package/dist/cjs/twitter-73956e9a.js +16 -0
  140. package/dist/cjs/user-a3c2230f.js +18 -0
  141. package/dist/cjs/youtube-c238a461.js +16 -0
  142. package/dist/collection/collection-manifest.json +107 -0
  143. package/dist/collection/components/eds-accordion/eds-accordion.css +258 -0
  144. package/dist/collection/components/eds-accordion/eds-accordion.js +246 -0
  145. package/dist/collection/components/eds-accordion/eds-accordion.stories.js +87 -0
  146. package/dist/collection/components/eds-alert/eds-alert.css +607 -0
  147. package/dist/collection/components/eds-alert/eds-alert.js +204 -0
  148. package/dist/collection/components/eds-alert/eds-alert.stories.js +52 -0
  149. package/dist/collection/components/eds-avatar/eds-avatar.css +149 -0
  150. package/dist/collection/components/eds-avatar/eds-avatar.js +210 -0
  151. package/dist/collection/components/eds-avatar/eds-avatar.stories.js +65 -0
  152. package/dist/collection/components/eds-block-break/eds-block-break.css +49 -0
  153. package/dist/collection/components/eds-block-break/eds-block-break.js +51 -0
  154. package/dist/collection/components/eds-breadcrump/eds-breadcrumb.css +111 -0
  155. package/dist/collection/components/eds-breadcrump/eds-breadcrumb.stories.js +32 -0
  156. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +220 -0
  157. package/dist/collection/components/eds-button/eds-button.css +7140 -0
  158. package/dist/collection/components/eds-button/eds-button.js +487 -0
  159. package/dist/collection/components/eds-button/eds-button.stories.js +47 -0
  160. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.css +41 -0
  161. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +102 -0
  162. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.stories.js +31 -0
  163. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.css +9 -0
  164. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +63 -0
  165. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.css +92 -0
  166. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +169 -0
  167. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js +86 -0
  168. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +103 -0
  169. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +324 -0
  170. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.stories.js +124 -0
  171. package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +227 -0
  172. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.css +103 -0
  173. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +314 -0
  174. package/dist/collection/components/eds-code-block/eds-code-block.css +177 -0
  175. package/dist/collection/components/eds-code-block/eds-code-block.js +86 -0
  176. package/dist/collection/components/eds-dropdown/eds-dropdown.css +117 -0
  177. package/dist/collection/components/eds-dropdown/eds-dropdown.js +356 -0
  178. package/dist/collection/components/eds-form/eds-form.css +7143 -0
  179. package/dist/collection/components/eds-form/eds-form.js +482 -0
  180. package/dist/collection/components/eds-form/eds-form.stories.js +89 -0
  181. package/dist/collection/components/eds-frame/eds-frame.js +266 -0
  182. package/dist/collection/components/eds-frame/eds-frame.stories.js +67 -0
  183. package/dist/collection/components/eds-icon-wrapper/eds-icon-wrapper.js +92 -0
  184. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +36 -0
  185. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +36 -0
  186. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +36 -0
  187. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +36 -0
  188. package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +36 -0
  189. package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +36 -0
  190. package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +36 -0
  191. package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +36 -0
  192. package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +36 -0
  193. package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +36 -0
  194. package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +36 -0
  195. package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +36 -0
  196. package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +36 -0
  197. package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +36 -0
  198. package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +36 -0
  199. package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +36 -0
  200. package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +36 -0
  201. package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +36 -0
  202. package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +36 -0
  203. package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +36 -0
  204. package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +36 -0
  205. package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +36 -0
  206. package/dist/collection/components/eds-img/eds-img.css +83 -0
  207. package/dist/collection/components/eds-img/eds-img.js +246 -0
  208. package/dist/collection/components/eds-img/eds-img.stories.js +101 -0
  209. package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +336 -0
  210. package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +105 -0
  211. package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +90 -0
  212. package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +197 -0
  213. package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +176 -0
  214. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +203 -0
  215. package/dist/collection/components/eds-input-field/eds-input-field.css +7151 -0
  216. package/dist/collection/components/eds-input-field/eds-input-field.js +419 -0
  217. package/dist/collection/components/eds-input-field/eds-input-field.stories.js +205 -0
  218. package/dist/collection/components/eds-link/eds-link.css +7164 -0
  219. package/dist/collection/components/eds-link/eds-link.js +482 -0
  220. package/dist/collection/components/eds-link/eds-link.stories.js +86 -0
  221. package/dist/collection/components/eds-logo/eds-logo.css +47 -0
  222. package/dist/collection/components/eds-logo/eds-logo.js +150 -0
  223. package/dist/collection/components/eds-logo/eds-logo.stories.js +38 -0
  224. package/dist/collection/components/eds-modal/eds-modal.css +203 -0
  225. package/dist/collection/components/eds-modal/eds-modal.js +175 -0
  226. package/dist/collection/components/eds-modal/eds-modal.stories.js +64 -0
  227. package/dist/collection/components/eds-navigator/eds-navigator.js +147 -0
  228. package/dist/collection/components/eds-navigator/eds-navigator.stories.js +101 -0
  229. package/dist/collection/components/eds-pagination/eds-pagination.css +120 -0
  230. package/dist/collection/components/eds-pagination/eds-pagination.js +414 -0
  231. package/dist/collection/components/eds-pagination/eds-pagination.stories.js +141 -0
  232. package/dist/collection/components/eds-progress-bar/eds-progress-bar.css +62 -0
  233. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +79 -0
  234. package/dist/collection/components/eds-progress-bar/eds-progress-bar.stories.js +25 -0
  235. package/dist/collection/components/eds-rating/eds-rating.css +74 -0
  236. package/dist/collection/components/eds-rating/eds-rating.js +138 -0
  237. package/dist/collection/components/eds-rating/eds-rating.stories.js +76 -0
  238. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.css +0 -0
  239. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +91 -0
  240. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.stories.js +74 -0
  241. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +137 -0
  242. package/dist/collection/components/eds-tab/eds-tab.js +109 -0
  243. package/dist/collection/components/eds-table/eds-table.css +138 -0
  244. package/dist/collection/components/eds-table/eds-table.js +281 -0
  245. package/dist/collection/components/eds-table/eds-table.stories.js +173 -0
  246. package/dist/collection/components/eds-tag/eds-tag.css +56 -0
  247. package/dist/collection/components/eds-tag/eds-tag.js +94 -0
  248. package/dist/collection/components/eds-tag/eds-tag.stories.js +27 -0
  249. package/dist/collection/components/eds-toast/eds-toast.js +108 -0
  250. package/dist/collection/components/eds-toast/eds-toast.stories.js +38 -0
  251. package/dist/collection/components/eds-tooltip/eds-tooltip.css +94 -0
  252. package/dist/collection/components/eds-tooltip/eds-tooltip.js +170 -0
  253. package/dist/collection/components/eds-tooltip/eds-tooltip.stories.js +21 -0
  254. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +39 -0
  255. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +85 -0
  256. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +55 -0
  257. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +41 -0
  258. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +75 -0
  259. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +59 -0
  260. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +66 -0
  261. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +48 -0
  262. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +98 -0
  263. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.stories.js +44 -0
  264. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +11 -0
  265. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +15 -0
  266. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +11 -0
  267. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +10 -0
  268. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +27 -0
  269. package/dist/collection/eds-docs-ui/eds-components-section/eds-components-section.js +58 -0
  270. package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +44 -0
  271. package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +52 -0
  272. package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +27 -0
  273. package/dist/collection/eds-docs-ui/functional/angular.js +2 -0
  274. package/dist/collection/eds-docs-ui/functional/installation.js +2 -0
  275. package/dist/collection/eds-docs-ui/functional/overview.js +2 -0
  276. package/dist/collection/eds-docs-ui/functional/react.js +2 -0
  277. package/dist/collection/eds-docs-ui/functional/usage.js +2 -0
  278. package/dist/collection/eds-docs-ui/functional/vue.js +2 -0
  279. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.css +53 -0
  280. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +22 -0
  281. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +60 -0
  282. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +73 -0
  283. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.css +64 -0
  284. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +73 -0
  285. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +206 -0
  286. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +22 -0
  287. package/dist/collection/index.js +1 -0
  288. package/dist/collection/shared-ui/eds-card-section/eds-card-section.css +153 -0
  289. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +93 -0
  290. package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +74 -0
  291. package/dist/collection/shared-ui/eds-footer/eds-footer.css +0 -0
  292. package/dist/collection/shared-ui/eds-footer/eds-footer.js +214 -0
  293. package/dist/collection/shared-ui/eds-footer/eds-footer.stories.js +50 -0
  294. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.css +0 -0
  295. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +215 -0
  296. package/dist/collection/shared-ui/eds-header/eds-header.css +0 -0
  297. package/dist/collection/shared-ui/eds-header/eds-header.js +286 -0
  298. package/dist/collection/shared-ui/eds-header/eds-header.stories.js +70 -0
  299. package/dist/collection/shared-ui/eds-login/eds-login.js +154 -0
  300. package/dist/collection/shared-ui/eds-login/eds-login.stories.js +37 -0
  301. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.css +105 -0
  302. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +164 -0
  303. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.js +34 -0
  304. package/dist/collection/shared-ui/eds-social-networks/eds-social-network.css +124 -0
  305. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +92 -0
  306. package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +0 -0
  307. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +213 -0
  308. package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +49 -0
  309. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +194 -0
  310. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.stories.js +112 -0
  311. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +37 -0
  312. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +50 -0
  313. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.stories.js +25 -0
  314. package/dist/collection/shared-ui/eds-user/eds-user.js +171 -0
  315. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.css +0 -0
  316. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +119 -0
  317. package/dist/collection/utils/keycloak.js +79 -0
  318. package/dist/collection/utils/toastManager.js +29 -0
  319. package/dist/components/analytics.js +43 -0
  320. package/dist/components/app-globals-0f993ce5.js +3 -0
  321. package/dist/components/arrow-diagonal-black.js +3 -0
  322. package/dist/components/arrow-right.js +5 -0
  323. package/dist/components/bluesky.js +14 -0
  324. package/dist/components/chevron-down.js +12 -0
  325. package/dist/components/chevron-left.js +11 -0
  326. package/dist/components/chevron-right.js +5 -0
  327. package/dist/components/chevron-up.js +12 -0
  328. package/dist/components/close.js +5 -0
  329. package/dist/components/color-primary-palette.d.ts +11 -0
  330. package/dist/components/color-primary-palette.entry.js +39 -0
  331. package/dist/components/color-primary-palette.js +6 -0
  332. package/dist/components/color-secondary-palette.d.ts +11 -0
  333. package/dist/components/color-secondary-palette.entry.js +64 -0
  334. package/dist/components/color-secondary-palette.js +6 -0
  335. package/dist/components/color-support-palette.d.ts +11 -0
  336. package/dist/components/color-support-palette.entry.js +55 -0
  337. package/dist/components/color-support-palette.js +6 -0
  338. package/dist/components/color.js +296 -0
  339. package/dist/components/components.css +7177 -0
  340. package/dist/components/components.esm.js +47 -0
  341. package/dist/components/copy.js +5 -0
  342. package/dist/components/correct-use-of-colors.d.ts +11 -0
  343. package/dist/components/correct-use-of-colors.entry.js +64 -0
  344. package/dist/components/correct-use-of-colors.js +93 -0
  345. package/dist/components/eds-accordion.d.ts +11 -0
  346. package/dist/components/eds-accordion.entry.js +88 -0
  347. package/dist/components/eds-accordion.js +6 -0
  348. package/dist/components/eds-accordion2.js +125 -0
  349. package/dist/components/eds-alert.d.ts +11 -0
  350. package/dist/components/eds-alert.entry.js +91 -0
  351. package/dist/components/eds-alert.js +6 -0
  352. package/dist/components/eds-alert2.js +125 -0
  353. package/dist/components/eds-avatar.d.ts +11 -0
  354. package/dist/components/eds-avatar.entry.js +69 -0
  355. package/dist/components/eds-avatar.js +6 -0
  356. package/dist/components/eds-avatar2.js +97 -0
  357. package/dist/components/eds-block-break.d.ts +11 -0
  358. package/dist/components/eds-block-break.entry.js +16 -0
  359. package/dist/components/eds-block-break.js +6 -0
  360. package/dist/components/eds-block-break2.js +33 -0
  361. package/dist/components/eds-breadcrumb.d.ts +11 -0
  362. package/dist/components/eds-breadcrumb.entry.js +148 -0
  363. package/dist/components/eds-breadcrumb.js +186 -0
  364. package/dist/components/eds-button.d.ts +11 -0
  365. package/dist/components/eds-button.entry.js +229 -0
  366. package/dist/components/eds-button.js +6 -0
  367. package/dist/components/eds-button2.js +264 -0
  368. package/dist/components/eds-card-desc.d.ts +11 -0
  369. package/dist/components/eds-card-desc.entry.js +22 -0
  370. package/dist/components/eds-card-desc.js +6 -0
  371. package/dist/components/eds-card-desc2.js +42 -0
  372. package/dist/components/eds-card-generic.d.ts +11 -0
  373. package/dist/components/eds-card-generic.entry.js +89 -0
  374. package/dist/components/eds-card-generic.js +6 -0
  375. package/dist/components/eds-card-generic2.js +147 -0
  376. package/dist/components/eds-card-project.d.ts +11 -0
  377. package/dist/components/eds-card-project.entry.js +63 -0
  378. package/dist/components/eds-card-project.js +108 -0
  379. package/dist/components/eds-card-section.d.ts +11 -0
  380. package/dist/components/eds-card-section.entry.js +39 -0
  381. package/dist/components/eds-card-section.js +96 -0
  382. package/dist/components/eds-card-tags.d.ts +11 -0
  383. package/dist/components/eds-card-tags.entry.js +17 -0
  384. package/dist/components/eds-card-tags.js +44 -0
  385. package/dist/components/eds-card-title.d.ts +11 -0
  386. package/dist/components/eds-card-title.entry.js +52 -0
  387. package/dist/components/eds-card-title.js +6 -0
  388. package/dist/components/eds-card-title2.js +74 -0
  389. package/dist/components/eds-card-tool.d.ts +11 -0
  390. package/dist/components/eds-card-tool.entry.js +75 -0
  391. package/dist/components/eds-card-tool.js +136 -0
  392. package/dist/components/eds-card-wrapper.d.ts +11 -0
  393. package/dist/components/eds-card-wrapper.entry.js +28 -0
  394. package/dist/components/eds-card-wrapper.js +49 -0
  395. package/dist/components/eds-code-block.d.ts +11 -0
  396. package/dist/components/eds-code-block.entry.js +2468 -0
  397. package/dist/components/eds-code-block.js +6 -0
  398. package/dist/components/eds-code-block2.js +2493 -0
  399. package/dist/components/eds-components-section.d.ts +11 -0
  400. package/dist/components/eds-components-section.entry.js +92 -0
  401. package/dist/components/eds-components-section.js +147 -0
  402. package/dist/components/eds-docs-palettes.d.ts +11 -0
  403. package/dist/components/eds-docs-palettes.entry.js +23 -0
  404. package/dist/components/eds-docs-palettes.js +96 -0
  405. package/dist/components/eds-docs-tokens.d.ts +11 -0
  406. package/dist/components/eds-docs-tokens.entry.js +31 -0
  407. package/dist/components/eds-docs-tokens.js +80 -0
  408. package/dist/components/eds-dropdown.d.ts +11 -0
  409. package/dist/components/eds-dropdown.entry.js +125 -0
  410. package/dist/components/eds-dropdown.js +6 -0
  411. package/dist/components/eds-dropdown2.js +163 -0
  412. package/dist/components/eds-footer.d.ts +11 -0
  413. package/dist/components/eds-footer.entry.js +45 -0
  414. package/dist/components/eds-footer.js +6 -0
  415. package/dist/components/eds-footer2.js +97 -0
  416. package/dist/components/eds-form.d.ts +11 -0
  417. package/dist/components/eds-form.entry.js +245 -0
  418. package/dist/components/eds-form.js +346 -0
  419. package/dist/components/eds-frame.d.ts +11 -0
  420. package/dist/components/eds-frame.entry.js +87 -0
  421. package/dist/components/eds-frame.js +127 -0
  422. package/dist/components/eds-fullscreen-menu.d.ts +11 -0
  423. package/dist/components/eds-fullscreen-menu.entry.js +95 -0
  424. package/dist/components/eds-fullscreen-menu.js +166 -0
  425. package/dist/components/eds-header.d.ts +11 -0
  426. package/dist/components/eds-header.entry.js +92 -0
  427. package/dist/components/eds-header.js +175 -0
  428. package/dist/components/eds-icon-arrow-diagonal.d.ts +11 -0
  429. package/dist/components/eds-icon-arrow-diagonal.entry.js +14 -0
  430. package/dist/components/eds-icon-arrow-diagonal.js +33 -0
  431. package/dist/components/eds-icon-arrow-right.d.ts +11 -0
  432. package/dist/components/eds-icon-arrow-right.entry.js +14 -0
  433. package/dist/components/eds-icon-arrow-right.js +33 -0
  434. package/dist/components/eds-icon-bluesky.d.ts +11 -0
  435. package/dist/components/eds-icon-bluesky.entry.js +14 -0
  436. package/dist/components/eds-icon-bluesky.js +33 -0
  437. package/dist/components/eds-icon-chevron-down.d.ts +11 -0
  438. package/dist/components/eds-icon-chevron-down.entry.js +14 -0
  439. package/dist/components/eds-icon-chevron-down.js +33 -0
  440. package/dist/components/eds-icon-chevron-left.d.ts +11 -0
  441. package/dist/components/eds-icon-chevron-left.entry.js +14 -0
  442. package/dist/components/eds-icon-chevron-left.js +33 -0
  443. package/dist/components/eds-icon-chevron-right.d.ts +11 -0
  444. package/dist/components/eds-icon-chevron-right.entry.js +14 -0
  445. package/dist/components/eds-icon-chevron-right.js +33 -0
  446. package/dist/components/eds-icon-chevron-up.d.ts +11 -0
  447. package/dist/components/eds-icon-chevron-up.entry.js +14 -0
  448. package/dist/components/eds-icon-chevron-up.js +33 -0
  449. package/dist/components/eds-icon-close.d.ts +11 -0
  450. package/dist/components/eds-icon-close.entry.js +14 -0
  451. package/dist/components/eds-icon-close.js +33 -0
  452. package/dist/components/eds-icon-copy.d.ts +11 -0
  453. package/dist/components/eds-icon-copy.entry.js +14 -0
  454. package/dist/components/eds-icon-copy.js +33 -0
  455. package/dist/components/eds-icon-eu.d.ts +11 -0
  456. package/dist/components/eds-icon-eu.entry.js +14 -0
  457. package/dist/components/eds-icon-eu.js +33 -0
  458. package/dist/components/eds-icon-facebook.d.ts +11 -0
  459. package/dist/components/eds-icon-facebook.entry.js +14 -0
  460. package/dist/components/eds-icon-facebook.js +33 -0
  461. package/dist/components/eds-icon-gitlab.d.ts +11 -0
  462. package/dist/components/eds-icon-gitlab.entry.js +14 -0
  463. package/dist/components/eds-icon-gitlab.js +33 -0
  464. package/dist/components/eds-icon-linkedin.d.ts +11 -0
  465. package/dist/components/eds-icon-linkedin.entry.js +14 -0
  466. package/dist/components/eds-icon-linkedin.js +33 -0
  467. package/dist/components/eds-icon-loader.d.ts +11 -0
  468. package/dist/components/eds-icon-loader.entry.js +14 -0
  469. package/dist/components/eds-icon-loader.js +33 -0
  470. package/dist/components/eds-icon-mastodon.d.ts +11 -0
  471. package/dist/components/eds-icon-mastodon.entry.js +14 -0
  472. package/dist/components/eds-icon-mastodon.js +33 -0
  473. package/dist/components/eds-icon-menu.d.ts +11 -0
  474. package/dist/components/eds-icon-menu.entry.js +14 -0
  475. package/dist/components/eds-icon-menu.js +33 -0
  476. package/dist/components/eds-icon-more.d.ts +11 -0
  477. package/dist/components/eds-icon-more.entry.js +14 -0
  478. package/dist/components/eds-icon-more.js +33 -0
  479. package/dist/components/eds-icon-search.d.ts +11 -0
  480. package/dist/components/eds-icon-search.entry.js +14 -0
  481. package/dist/components/eds-icon-search.js +33 -0
  482. package/dist/components/eds-icon-success.d.ts +11 -0
  483. package/dist/components/eds-icon-success.entry.js +14 -0
  484. package/dist/components/eds-icon-success.js +33 -0
  485. package/dist/components/eds-icon-twitter.d.ts +11 -0
  486. package/dist/components/eds-icon-twitter.entry.js +14 -0
  487. package/dist/components/eds-icon-twitter.js +33 -0
  488. package/dist/components/eds-icon-user.d.ts +11 -0
  489. package/dist/components/eds-icon-user.entry.js +14 -0
  490. package/dist/components/eds-icon-user.js +33 -0
  491. package/dist/components/eds-icon-wrapper.d.ts +11 -0
  492. package/dist/components/eds-icon-wrapper.entry.js +36 -0
  493. package/dist/components/eds-icon-wrapper.js +6 -0
  494. package/dist/components/eds-icon-wrapper2.js +56 -0
  495. package/dist/components/eds-icon-youtube.d.ts +11 -0
  496. package/dist/components/eds-icon-youtube.entry.js +14 -0
  497. package/dist/components/eds-icon-youtube.js +33 -0
  498. package/dist/components/eds-img.d.ts +11 -0
  499. package/dist/components/eds-img.entry.js +53 -0
  500. package/dist/components/eds-img.js +6 -0
  501. package/dist/components/eds-img2.js +80 -0
  502. package/dist/components/eds-input-field.d.ts +11 -0
  503. package/dist/components/eds-input-field.entry.js +68 -0
  504. package/dist/components/eds-input-field.js +6 -0
  505. package/dist/components/eds-input-field2.js +145 -0
  506. package/dist/components/eds-input-footer.d.ts +11 -0
  507. package/dist/components/eds-input-footer.entry.js +17 -0
  508. package/dist/components/eds-input-footer.js +6 -0
  509. package/dist/components/eds-input-footer2.js +43 -0
  510. package/dist/components/eds-input-label.d.ts +11 -0
  511. package/dist/components/eds-input-label.entry.js +16 -0
  512. package/dist/components/eds-input-label.js +6 -0
  513. package/dist/components/eds-input-label2.js +35 -0
  514. package/dist/components/eds-input-range.d.ts +11 -0
  515. package/dist/components/eds-input-range.entry.js +35 -0
  516. package/dist/components/eds-input-range.js +6 -0
  517. package/dist/components/eds-input-range2.js +59 -0
  518. package/dist/components/eds-input-search.d.ts +11 -0
  519. package/dist/components/eds-input-search.entry.js +37 -0
  520. package/dist/components/eds-input-search.js +6 -0
  521. package/dist/components/eds-input-search2.js +65 -0
  522. package/dist/components/eds-input-select.d.ts +11 -0
  523. package/dist/components/eds-input-select.entry.js +26 -0
  524. package/dist/components/eds-input-select.js +6 -0
  525. package/dist/components/eds-input-select2.js +56 -0
  526. package/dist/components/eds-input.d.ts +11 -0
  527. package/dist/components/eds-input.entry.js +64 -0
  528. package/dist/components/eds-input.js +6 -0
  529. package/dist/components/eds-input2.js +103 -0
  530. package/dist/components/eds-link.d.ts +11 -0
  531. package/dist/components/eds-link.entry.js +207 -0
  532. package/dist/components/eds-link.js +6 -0
  533. package/dist/components/eds-link2.js +243 -0
  534. package/dist/components/eds-login.d.ts +11 -0
  535. package/dist/components/eds-login.entry.js +68 -0
  536. package/dist/components/eds-login.js +103 -0
  537. package/dist/components/eds-logo.d.ts +11 -0
  538. package/dist/components/eds-logo.entry.js +72 -0
  539. package/dist/components/eds-logo.js +6 -0
  540. package/dist/components/eds-logo2.js +90 -0
  541. package/dist/components/eds-matomo-notice.d.ts +11 -0
  542. package/dist/components/eds-matomo-notice.entry.js +105 -0
  543. package/dist/components/eds-matomo-notice.js +144 -0
  544. package/dist/components/eds-modal.d.ts +11 -0
  545. package/dist/components/eds-modal.entry.js +42 -0
  546. package/dist/components/eds-modal.js +80 -0
  547. package/dist/components/eds-navigator.d.ts +11 -0
  548. package/dist/components/eds-navigator.entry.js +39 -0
  549. package/dist/components/eds-navigator.js +75 -0
  550. package/dist/components/eds-pagination.d.ts +11 -0
  551. package/dist/components/eds-pagination.entry.js +207 -0
  552. package/dist/components/eds-pagination.js +6 -0
  553. package/dist/components/eds-pagination2.js +249 -0
  554. package/dist/components/eds-progress-bar.d.ts +11 -0
  555. package/dist/components/eds-progress-bar.entry.js +24 -0
  556. package/dist/components/eds-progress-bar.js +45 -0
  557. package/dist/components/eds-rating.d.ts +11 -0
  558. package/dist/components/eds-rating.entry.js +53 -0
  559. package/dist/components/eds-rating.js +76 -0
  560. package/dist/components/eds-section-core.d.ts +11 -0
  561. package/dist/components/eds-section-core.entry.js +19 -0
  562. package/dist/components/eds-section-core.js +6 -0
  563. package/dist/components/eds-section-core2.js +43 -0
  564. package/dist/components/eds-section-heading.d.ts +11 -0
  565. package/dist/components/eds-section-heading.entry.js +37 -0
  566. package/dist/components/eds-section-heading.js +6 -0
  567. package/dist/components/eds-section-heading2.js +57 -0
  568. package/dist/components/eds-social-networks.d.ts +11 -0
  569. package/dist/components/eds-social-networks.entry.js +61 -0
  570. package/dist/components/eds-social-networks.js +6 -0
  571. package/dist/components/eds-social-networks2.js +90 -0
  572. package/dist/components/eds-svg-repository.d.ts +11 -0
  573. package/dist/components/eds-svg-repository.entry.js +28 -0
  574. package/dist/components/eds-svg-repository.js +112 -0
  575. package/dist/components/eds-tab.d.ts +11 -0
  576. package/dist/components/eds-tab.entry.js +36 -0
  577. package/dist/components/eds-tab.js +6 -0
  578. package/dist/components/eds-tab2.js +55 -0
  579. package/dist/components/eds-table.d.ts +11 -0
  580. package/dist/components/eds-table.entry.js +138 -0
  581. package/dist/components/eds-table.js +6 -0
  582. package/dist/components/eds-table2.js +229 -0
  583. package/dist/components/eds-tabs-content.d.ts +11 -0
  584. package/dist/components/eds-tabs-content.entry.js +129 -0
  585. package/dist/components/eds-tabs-content.js +159 -0
  586. package/dist/components/eds-tabs.d.ts +11 -0
  587. package/dist/components/eds-tabs.entry.js +118 -0
  588. package/dist/components/eds-tabs.js +149 -0
  589. package/dist/components/eds-tag.d.ts +11 -0
  590. package/dist/components/eds-tag.entry.js +40 -0
  591. package/dist/components/eds-tag.js +6 -0
  592. package/dist/components/eds-tag2.js +58 -0
  593. package/dist/components/eds-toast-manager.d.ts +11 -0
  594. package/dist/components/eds-toast-manager.entry.js +41 -0
  595. package/dist/components/eds-toast-manager.js +78 -0
  596. package/dist/components/eds-toast.d.ts +11 -0
  597. package/dist/components/eds-toast.entry.js +49 -0
  598. package/dist/components/eds-toast.js +6 -0
  599. package/dist/components/eds-toast2.js +80 -0
  600. package/dist/components/eds-tooltip.d.ts +11 -0
  601. package/dist/components/eds-tooltip.entry.js +95 -0
  602. package/dist/components/eds-tooltip.js +119 -0
  603. package/dist/components/eds-user-modal.d.ts +11 -0
  604. package/dist/components/eds-user-modal.entry.js +43 -0
  605. package/dist/components/eds-user-modal.js +6 -0
  606. package/dist/components/eds-user-modal2.js +90 -0
  607. package/dist/components/eds-user.d.ts +11 -0
  608. package/dist/components/eds-user.entry.js +86 -0
  609. package/dist/components/eds-user.js +6 -0
  610. package/dist/components/eds-user2.js +150 -0
  611. package/dist/components/eu.js +30 -0
  612. package/dist/components/facebook.js +14 -0
  613. package/dist/components/gradient-primary-palette.d.ts +11 -0
  614. package/dist/components/gradient-primary-palette.entry.js +41 -0
  615. package/dist/components/gradient-primary-palette.js +6 -0
  616. package/dist/components/gradient-secondary-palette.d.ts +11 -0
  617. package/dist/components/gradient-secondary-palette.entry.js +75 -0
  618. package/dist/components/gradient-secondary-palette.js +6 -0
  619. package/dist/components/gradient-support-palette.d.ts +11 -0
  620. package/dist/components/gradient-support-palette.entry.js +59 -0
  621. package/dist/components/gradient-support-palette.js +6 -0
  622. package/dist/components/incorrect-use-of-colors.d.ts +11 -0
  623. package/dist/components/incorrect-use-of-colors.entry.js +46 -0
  624. package/dist/components/incorrect-use-of-colors.js +63 -0
  625. package/dist/components/index-144c9ae8.js +46 -0
  626. package/dist/components/index-360dc790.js +401 -0
  627. package/dist/components/index-a9afa43f.js +1802 -0
  628. package/dist/components/index-b384416e.js +3023 -0
  629. package/dist/components/index.d.ts +33 -0
  630. package/dist/components/index.esm.js +1 -0
  631. package/dist/components/index.js +1 -0
  632. package/dist/components/index2.js +401 -0
  633. package/dist/components/index3.js +46 -0
  634. package/dist/components/index4.js +1802 -0
  635. package/dist/components/keycloak-b647d452.js +1903 -0
  636. package/dist/components/keycloak.js +1903 -0
  637. package/dist/components/linkedin.js +28 -0
  638. package/dist/components/loader.js +33 -0
  639. package/dist/components/logo-color-margins.js +118 -0
  640. package/dist/components/logo-color.js +115 -0
  641. package/dist/components/logo-space.d.ts +11 -0
  642. package/dist/components/logo-space.entry.js +16 -0
  643. package/dist/components/logo-space.js +34 -0
  644. package/dist/components/logo-variations-horizontal.d.ts +11 -0
  645. package/dist/components/logo-variations-horizontal.entry.js +26 -0
  646. package/dist/components/logo-variations-horizontal.js +53 -0
  647. package/dist/components/logo-variations-vertical.d.ts +11 -0
  648. package/dist/components/logo-variations-vertical.entry.js +26 -0
  649. package/dist/components/logo-variations-vertical.js +53 -0
  650. package/dist/components/logo-white-no-bg.js +1029 -0
  651. package/dist/components/logo-wrong-usage.d.ts +11 -0
  652. package/dist/components/logo-wrong-usage.entry.js +16 -0
  653. package/dist/components/logo-wrong-usage.js +34 -0
  654. package/dist/components/mastodon.js +14 -0
  655. package/dist/components/menu.js +11 -0
  656. package/dist/components/mono.js +11 -0
  657. package/dist/components/more.js +13 -0
  658. package/dist/components/p-0611bbac.entry.js +1 -0
  659. package/dist/components/p-0a195bfe.entry.js +1 -0
  660. package/dist/components/p-0a6262b7.entry.js +1 -0
  661. package/dist/components/p-0be28996.js +1 -0
  662. package/dist/components/p-0e6d43c5.js +1 -0
  663. package/dist/components/p-112122d6.js +1 -0
  664. package/dist/components/p-11a4ef34.entry.js +1 -0
  665. package/dist/components/p-145d8e4d.entry.js +1 -0
  666. package/dist/components/p-1a1b8e28.entry.js +1 -0
  667. package/dist/components/p-1d94d663.entry.js +1 -0
  668. package/dist/components/p-1ded61bd.js +1 -0
  669. package/dist/components/p-200ad980.entry.js +9 -0
  670. package/dist/components/p-2066b033.js +1 -0
  671. package/dist/components/p-219d9f68.entry.js +1 -0
  672. package/dist/components/p-22ee5374.entry.js +1 -0
  673. package/dist/components/p-25eb1801.entry.js +1 -0
  674. package/dist/components/p-2692f93d.js +1 -0
  675. package/dist/components/p-2728a189.entry.js +1 -0
  676. package/dist/components/p-29041952.js +1 -0
  677. package/dist/components/p-2b14f03a.entry.js +1 -0
  678. package/dist/components/p-3048bdec.entry.js +1 -0
  679. package/dist/components/p-32e6c4df.js +1 -0
  680. package/dist/components/p-36c0f3ee.entry.js +1 -0
  681. package/dist/components/p-373119b3.js +1 -0
  682. package/dist/components/p-378d371f.entry.js +1 -0
  683. package/dist/components/p-3dbf2ac9.entry.js +1 -0
  684. package/dist/components/p-42dfb426.entry.js +1 -0
  685. package/dist/components/p-4541cb5f.entry.js +1 -0
  686. package/dist/components/p-4587d0ef.js +1 -0
  687. package/dist/components/p-4687b64c.js +1 -0
  688. package/dist/components/p-46d0716d.js +1 -0
  689. package/dist/components/p-49a5eef5.entry.js +1 -0
  690. package/dist/components/p-50e27321.js +1 -0
  691. package/dist/components/p-513bf756.entry.js +1 -0
  692. package/dist/components/p-52a487ee.entry.js +1 -0
  693. package/dist/components/p-54b8f143.js +1 -0
  694. package/dist/components/p-55444767.entry.js +1 -0
  695. package/dist/components/p-5ab1d64a.js +1 -0
  696. package/dist/components/p-5b900a2c.entry.js +1 -0
  697. package/dist/components/p-5d046674.js +1 -0
  698. package/dist/components/p-5edc806a.entry.js +1 -0
  699. package/dist/components/p-606d8f86.entry.js +1 -0
  700. package/dist/components/p-64d4a6e0.entry.js +1 -0
  701. package/dist/components/p-677f60bc.entry.js +1 -0
  702. package/dist/components/p-6bc00fad.entry.js +1 -0
  703. package/dist/components/p-6cb8c52d.entry.js +1 -0
  704. package/dist/components/p-6f601454.entry.js +1 -0
  705. package/dist/components/p-763cbe2f.entry.js +1 -0
  706. package/dist/components/p-77a81dfa.entry.js +1 -0
  707. package/dist/components/p-7a2b35b4.entry.js +1 -0
  708. package/dist/components/p-81899237.js +1 -0
  709. package/dist/components/p-81d2a9be.entry.js +1 -0
  710. package/dist/components/p-82453a66.entry.js +1 -0
  711. package/dist/components/p-83ff4a95.js +1 -0
  712. package/dist/components/p-877403df.entry.js +1 -0
  713. package/dist/components/p-8983de37.js +1 -0
  714. package/dist/components/p-8c1be2b6.entry.js +1 -0
  715. package/dist/components/p-923e4d23.entry.js +1 -0
  716. package/dist/components/p-94b74ae8.entry.js +1 -0
  717. package/dist/components/p-9c05e349.entry.js +1 -0
  718. package/dist/components/p-9c5a453b.js +1 -0
  719. package/dist/components/p-9c74a5dd.entry.js +1 -0
  720. package/dist/components/p-abcdf35f.js +1 -0
  721. package/dist/components/p-ac083317.entry.js +1 -0
  722. package/dist/components/p-ad79cc3c.entry.js +1 -0
  723. package/dist/components/p-aefcb641.js +1 -0
  724. package/dist/components/p-b4055691.entry.js +1 -0
  725. package/dist/components/p-b544f216.entry.js +1 -0
  726. package/dist/components/p-b822abb7.js +1 -0
  727. package/dist/components/p-b94318f2.entry.js +1 -0
  728. package/dist/components/p-bad2a33a.entry.js +1 -0
  729. package/dist/components/p-bfd2fdf1.entry.js +1 -0
  730. package/dist/components/p-c0afe524.entry.js +1 -0
  731. package/dist/components/p-c11d93cf.entry.js +1 -0
  732. package/dist/components/p-c16b3c0c.entry.js +1 -0
  733. package/dist/components/p-c3c61db1.entry.js +1 -0
  734. package/dist/components/p-c8e7c854.js +1 -0
  735. package/dist/components/p-c9c417de.js +1 -0
  736. package/dist/components/p-caf2af08.entry.js +1 -0
  737. package/dist/components/p-d80de13e.entry.js +1 -0
  738. package/dist/components/p-ddd005a3.entry.js +1 -0
  739. package/dist/components/p-e04097a2.entry.js +1 -0
  740. package/dist/components/p-e1255160.js +1 -0
  741. package/dist/components/p-e2e715a2.entry.js +1 -0
  742. package/dist/components/p-e639818b.entry.js +1 -0
  743. package/dist/components/p-e69ff916.entry.js +1 -0
  744. package/dist/components/p-e80f4f24.js +1 -0
  745. package/dist/components/p-e9a1fb1e.js +2 -0
  746. package/dist/components/p-ec95188c.entry.js +1 -0
  747. package/dist/components/p-ecbb679f.js +1 -0
  748. package/dist/components/p-ece618b3.js +1 -0
  749. package/dist/components/p-f04946a5.entry.js +1 -0
  750. package/dist/components/p-fa1276cc.entry.js +1 -0
  751. package/dist/components/p-ff6b25a1.entry.js +1 -0
  752. package/dist/components/primary.js +65 -0
  753. package/dist/components/primary2.js +67 -0
  754. package/dist/components/search.js +12 -0
  755. package/dist/components/secondary.js +92 -0
  756. package/dist/components/secondary2.js +107 -0
  757. package/dist/components/shadow-css-423dab2c.js +332 -0
  758. package/dist/components/success.js +18 -0
  759. package/dist/components/support.js +81 -0
  760. package/dist/components/support2.js +85 -0
  761. package/dist/components/toastManager-b716afd8.js +31 -0
  762. package/dist/components/toastManager.js +31 -0
  763. package/dist/components/token-list.d.ts +11 -0
  764. package/dist/components/token-list.entry.js +249 -0
  765. package/dist/components/token-list.js +6 -0
  766. package/dist/components/token-list2.js +277 -0
  767. package/dist/components/token-radii.d.ts +11 -0
  768. package/dist/components/token-radii.entry.js +21 -0
  769. package/dist/components/token-radii.js +6 -0
  770. package/dist/components/token-radii2.js +47 -0
  771. package/dist/components/token-ratios.d.ts +11 -0
  772. package/dist/components/token-ratios.entry.js +25 -0
  773. package/dist/components/token-ratios.js +54 -0
  774. package/dist/components/token-shadows.d.ts +11 -0
  775. package/dist/components/token-shadows.entry.js +30 -0
  776. package/dist/components/token-shadows.js +6 -0
  777. package/dist/components/token-shadows2.js +56 -0
  778. package/dist/components/token-spacing.d.ts +11 -0
  779. package/dist/components/token-spacing.entry.js +12 -0
  780. package/dist/components/token-spacing.js +29 -0
  781. package/dist/components/token-typography.d.ts +11 -0
  782. package/dist/components/token-typography.entry.js +226 -0
  783. package/dist/components/token-typography.js +255 -0
  784. package/dist/components/twitter.js +14 -0
  785. package/dist/components/user.js +16 -0
  786. package/dist/components/youtube.js +14 -0
  787. package/dist/esm/app-globals-0f993ce5.js +3 -0
  788. package/dist/esm/arrow-diagonal-black-8f0494c3.js +3 -0
  789. package/dist/esm/arrow-right-9322ba8a.js +5 -0
  790. package/dist/esm/bluesky-cc5edd2d.js +14 -0
  791. package/dist/esm/chevron-down-6144c823.js +12 -0
  792. package/dist/esm/chevron-left-ca6c66e1.js +11 -0
  793. package/dist/esm/chevron-right-b88ed2d4.js +5 -0
  794. package/dist/esm/chevron-up-c66bd477.js +12 -0
  795. package/dist/esm/close-87fc0d63.js +5 -0
  796. package/dist/esm/color-49aa977d.js +338 -0
  797. package/dist/esm/color-primary-palette.entry.js +39 -0
  798. package/dist/esm/color-primary-palette_6.entry.js +318 -0
  799. package/dist/esm/color-secondary-palette.entry.js +64 -0
  800. package/dist/esm/color-support-palette.entry.js +55 -0
  801. package/dist/esm/components.js +47 -0
  802. package/dist/esm/copy-03b72cb6.js +5 -0
  803. package/dist/esm/correct-use-of-colors.entry.js +64 -0
  804. package/dist/esm/eds-accordion.entry.js +88 -0
  805. package/dist/esm/eds-accordion_23.entry.js +1860 -0
  806. package/dist/esm/eds-alert.entry.js +91 -0
  807. package/dist/esm/eds-avatar.entry.js +69 -0
  808. package/dist/esm/eds-block-break.entry.js +16 -0
  809. package/dist/esm/eds-breadcrumb.entry.js +148 -0
  810. package/dist/esm/eds-button.entry.js +229 -0
  811. package/dist/esm/eds-card-desc.entry.js +22 -0
  812. package/dist/esm/eds-card-desc_3.entry.js +111 -0
  813. package/dist/esm/eds-card-generic.entry.js +89 -0
  814. package/dist/esm/eds-card-project.entry.js +63 -0
  815. package/dist/esm/eds-card-section.entry.js +39 -0
  816. package/dist/esm/eds-card-tags.entry.js +17 -0
  817. package/dist/esm/eds-card-title.entry.js +52 -0
  818. package/dist/esm/eds-card-tool.entry.js +75 -0
  819. package/dist/esm/eds-card-wrapper.entry.js +28 -0
  820. package/dist/esm/eds-code-block.entry.js +2468 -0
  821. package/dist/esm/eds-components-section.entry.js +92 -0
  822. package/dist/esm/eds-docs-palettes.entry.js +23 -0
  823. package/dist/esm/eds-docs-tokens.entry.js +31 -0
  824. package/dist/esm/eds-dropdown.entry.js +125 -0
  825. package/dist/esm/eds-footer.entry.js +45 -0
  826. package/dist/esm/eds-form.entry.js +245 -0
  827. package/dist/esm/eds-frame.entry.js +87 -0
  828. package/dist/esm/eds-fullscreen-menu.entry.js +95 -0
  829. package/dist/esm/eds-header.entry.js +92 -0
  830. package/dist/esm/eds-icon-arrow-diagonal.entry.js +14 -0
  831. package/dist/esm/eds-icon-arrow-right.entry.js +14 -0
  832. package/dist/esm/eds-icon-bluesky.entry.js +14 -0
  833. package/dist/esm/eds-icon-chevron-down.entry.js +14 -0
  834. package/dist/esm/eds-icon-chevron-left.entry.js +14 -0
  835. package/dist/esm/eds-icon-chevron-right.entry.js +14 -0
  836. package/dist/esm/eds-icon-chevron-up.entry.js +14 -0
  837. package/dist/esm/eds-icon-close.entry.js +14 -0
  838. package/dist/esm/eds-icon-copy.entry.js +14 -0
  839. package/dist/esm/eds-icon-eu.entry.js +14 -0
  840. package/dist/esm/eds-icon-facebook.entry.js +14 -0
  841. package/dist/esm/eds-icon-gitlab.entry.js +14 -0
  842. package/dist/esm/eds-icon-linkedin.entry.js +14 -0
  843. package/dist/esm/eds-icon-loader.entry.js +14 -0
  844. package/dist/esm/eds-icon-mastodon.entry.js +14 -0
  845. package/dist/esm/eds-icon-menu.entry.js +14 -0
  846. package/dist/esm/eds-icon-more.entry.js +14 -0
  847. package/dist/esm/eds-icon-search.entry.js +14 -0
  848. package/dist/esm/eds-icon-success.entry.js +14 -0
  849. package/dist/esm/eds-icon-twitter.entry.js +14 -0
  850. package/dist/esm/eds-icon-user.entry.js +14 -0
  851. package/dist/esm/eds-icon-wrapper.entry.js +36 -0
  852. package/dist/esm/eds-icon-youtube.entry.js +14 -0
  853. package/dist/esm/eds-img.entry.js +53 -0
  854. package/dist/esm/eds-input-field.entry.js +68 -0
  855. package/dist/esm/eds-input-footer.entry.js +17 -0
  856. package/dist/esm/eds-input-label.entry.js +16 -0
  857. package/dist/esm/eds-input-range.entry.js +35 -0
  858. package/dist/esm/eds-input-search.entry.js +37 -0
  859. package/dist/esm/eds-input-select.entry.js +26 -0
  860. package/dist/esm/eds-input.entry.js +64 -0
  861. package/dist/esm/eds-link.entry.js +207 -0
  862. package/dist/esm/eds-login.entry.js +68 -0
  863. package/dist/esm/eds-logo.entry.js +72 -0
  864. package/dist/esm/eds-matomo-notice.entry.js +105 -0
  865. package/dist/esm/eds-modal.entry.js +42 -0
  866. package/dist/esm/eds-navigator.entry.js +39 -0
  867. package/dist/esm/eds-pagination.entry.js +207 -0
  868. package/dist/esm/eds-progress-bar.entry.js +24 -0
  869. package/dist/esm/eds-rating.entry.js +53 -0
  870. package/dist/esm/eds-section-core.entry.js +19 -0
  871. package/dist/esm/eds-section-core_2.entry.js +54 -0
  872. package/dist/esm/eds-section-heading.entry.js +37 -0
  873. package/dist/esm/eds-social-networks.entry.js +61 -0
  874. package/dist/esm/eds-svg-repository.entry.js +28 -0
  875. package/dist/esm/eds-tab.entry.js +36 -0
  876. package/dist/esm/eds-table.entry.js +138 -0
  877. package/dist/esm/eds-tabs-content.entry.js +129 -0
  878. package/dist/esm/eds-tabs.entry.js +118 -0
  879. package/dist/esm/eds-tag.entry.js +40 -0
  880. package/dist/esm/eds-toast-manager.entry.js +41 -0
  881. package/dist/esm/eds-toast.entry.js +49 -0
  882. package/dist/esm/eds-tooltip.entry.js +95 -0
  883. package/dist/esm/eds-user-modal.entry.js +43 -0
  884. package/dist/esm/eds-user.entry.js +86 -0
  885. package/dist/esm/eu-9ddde93a.js +30 -0
  886. package/dist/esm/facebook-9cb5c17f.js +14 -0
  887. package/dist/esm/gradient-primary-palette.entry.js +41 -0
  888. package/dist/esm/gradient-secondary-palette.entry.js +75 -0
  889. package/dist/esm/gradient-support-palette.entry.js +59 -0
  890. package/dist/esm/incorrect-use-of-colors.entry.js +46 -0
  891. package/dist/esm/index-144c9ae8.js +46 -0
  892. package/dist/esm/index-360dc790.js +401 -0
  893. package/dist/esm/index-39c58238.js +46 -0
  894. package/dist/esm/index-a9afa43f.js +1802 -0
  895. package/dist/esm/index-b384416e.js +3416 -0
  896. package/dist/esm/index-f1426055.js +2121 -0
  897. package/dist/esm/index.js +1 -0
  898. package/dist/esm/keycloak-13893af6.js +1893 -0
  899. package/dist/esm/keycloak-b647d452.js +1903 -0
  900. package/dist/esm/linkedin-e8650abb.js +28 -0
  901. package/dist/esm/loader-66341740.js +33 -0
  902. package/dist/esm/loader.js +11 -0
  903. package/dist/esm/logo-color-7f1fd803.js +115 -0
  904. package/dist/esm/logo-color-margins-ff8ce71b.js +118 -0
  905. package/dist/esm/logo-space.entry.js +16 -0
  906. package/dist/esm/logo-variations-horizontal.entry.js +26 -0
  907. package/dist/esm/logo-variations-vertical.entry.js +26 -0
  908. package/dist/esm/logo-white-no-bg-f382f86f.js +1029 -0
  909. package/dist/esm/logo-wrong-usage.entry.js +16 -0
  910. package/dist/esm/mastodon-3703ec61.js +14 -0
  911. package/dist/esm/menu-340ea948.js +11 -0
  912. package/dist/esm/mono-53f70232.js +11 -0
  913. package/dist/esm/more-4449d549.js +13 -0
  914. package/dist/esm/search-fbcd79c2.js +12 -0
  915. package/dist/esm/shadow-css-423dab2c.js +332 -0
  916. package/dist/esm/success-443809da.js +18 -0
  917. package/dist/esm/toastManager-b716afd8.js +31 -0
  918. package/dist/esm/token-list.entry.js +249 -0
  919. package/dist/esm/token-list_3.entry.js +294 -0
  920. package/dist/esm/token-radii.entry.js +21 -0
  921. package/dist/esm/token-ratios.entry.js +25 -0
  922. package/dist/esm/token-shadows.entry.js +30 -0
  923. package/dist/esm/token-spacing.entry.js +12 -0
  924. package/dist/esm/token-typography.entry.js +226 -0
  925. package/dist/esm/twitter-ac21b505.js +14 -0
  926. package/dist/esm/user-71ebdc15.js +16 -0
  927. package/dist/esm/youtube-efbfbdc4.js +14 -0
  928. package/dist/hydrate/index.d.ts +242 -0
  929. package/dist/hydrate/index.js +31353 -0
  930. package/dist/hydrate/index.mjs +31345 -0
  931. package/dist/hydrate/package.json +12 -0
  932. package/dist/index.cjs.js +1 -0
  933. package/dist/index.js +1 -0
  934. package/dist/stencil.config.js +64 -0
  935. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/components/stencil.config.d.ts +2 -0
  936. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/index.d.ts +1 -0
  937. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/lib/svgs.d.ts +46 -0
  938. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/index.d.ts +3 -0
  939. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/analytics.d.ts +23 -0
  940. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/color.d.ts +8 -0
  941. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/keycloak.d.ts +30 -0
  942. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/render.d.ts +8 -0
  943. package/dist/types/components/eds-accordion/eds-accordion.d.ts +81 -0
  944. package/dist/types/components/eds-accordion/eds-accordion.stories.d.ts +61 -0
  945. package/dist/types/components/eds-alert/eds-alert.d.ts +43 -0
  946. package/dist/types/components/eds-alert/eds-alert.stories.d.ts +46 -0
  947. package/dist/types/components/eds-avatar/eds-avatar.d.ts +57 -0
  948. package/dist/types/components/eds-avatar/eds-avatar.stories.d.ts +63 -0
  949. package/dist/types/components/eds-block-break/eds-block-break.d.ts +15 -0
  950. package/dist/types/components/eds-breadcrump/eds-breadcrumb.stories.d.ts +29 -0
  951. package/dist/types/components/eds-breadcrump/eds-breadcrump.d.ts +97 -0
  952. package/dist/types/components/eds-button/eds-button.d.ts +75 -0
  953. package/dist/types/components/eds-button/eds-button.stories.d.ts +62 -0
  954. package/dist/types/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.d.ts +23 -0
  955. package/dist/types/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.stories.d.ts +32 -0
  956. package/dist/types/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.d.ts +15 -0
  957. package/dist/types/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.d.ts +38 -0
  958. package/dist/types/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.d.ts +23 -0
  959. package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +87 -0
  960. package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.stories.d.ts +94 -0
  961. package/dist/types/components/eds-cards/eds-card-project/eds-card-project.d.ts +54 -0
  962. package/dist/types/components/eds-cards/eds-card-tool/eds-card-tool.d.ts +79 -0
  963. package/dist/types/components/eds-code-block/eds-code-block.d.ts +15 -0
  964. package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +120 -0
  965. package/dist/types/components/eds-form/eds-form.d.ts +112 -0
  966. package/dist/types/components/eds-form/eds-form.stories.d.ts +47 -0
  967. package/dist/types/components/eds-frame/eds-frame.d.ts +42 -0
  968. package/dist/types/components/eds-frame/eds-frame.stories.d.ts +45 -0
  969. package/dist/types/components/eds-icon-wrapper/eds-icon-wrapper.d.ts +28 -0
  970. package/dist/types/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.d.ts +10 -0
  971. package/dist/types/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.d.ts +10 -0
  972. package/dist/types/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.d.ts +10 -0
  973. package/dist/types/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.d.ts +10 -0
  974. package/dist/types/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.d.ts +10 -0
  975. package/dist/types/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.d.ts +10 -0
  976. package/dist/types/components/eds-icons/eds-icon-close/eds-icon-close.d.ts +10 -0
  977. package/dist/types/components/eds-icons/eds-icon-copy/eds-icon-copy.d.ts +10 -0
  978. package/dist/types/components/eds-icons/eds-icon-eu/eds-icon-eu.d.ts +10 -0
  979. package/dist/types/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.d.ts +10 -0
  980. package/dist/types/components/eds-icons/eds-icon-loader/eds-icon-loader.d.ts +10 -0
  981. package/dist/types/components/eds-icons/eds-icon-menu/eds-icon-menu.d.ts +10 -0
  982. package/dist/types/components/eds-icons/eds-icon-more/eds-icon-more.d.ts +10 -0
  983. package/dist/types/components/eds-icons/eds-icon-search/eds-icon-search.d.ts +10 -0
  984. package/dist/types/components/eds-icons/eds-icon-success/eds-icon-success.d.ts +10 -0
  985. package/dist/types/components/eds-icons/eds-icon-user/eds-icon-user.d.ts +10 -0
  986. package/dist/types/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.d.ts +10 -0
  987. package/dist/types/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.d.ts +10 -0
  988. package/dist/types/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.d.ts +10 -0
  989. package/dist/types/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.d.ts +10 -0
  990. package/dist/types/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.d.ts +10 -0
  991. package/dist/types/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.d.ts +10 -0
  992. package/dist/types/components/eds-img/eds-img.d.ts +70 -0
  993. package/dist/types/components/eds-img/eds-img.stories.d.ts +76 -0
  994. package/dist/types/components/eds-input-elements/eds-input/eds-input.d.ts +35 -0
  995. package/dist/types/components/eds-input-elements/eds-input-footer/eds-input-footer.d.ts +14 -0
  996. package/dist/types/components/eds-input-elements/eds-input-label/eds-input-label.d.ts +10 -0
  997. package/dist/types/components/eds-input-elements/eds-input-range/eds-input-range.d.ts +25 -0
  998. package/dist/types/components/eds-input-elements/eds-input-search/eds-input-search.d.ts +25 -0
  999. package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +21 -0
  1000. package/dist/types/components/eds-input-field/eds-input-field.d.ts +98 -0
  1001. package/dist/types/components/eds-input-field/eds-input-field.stories.d.ts +92 -0
  1002. package/dist/types/components/eds-link/eds-link.d.ts +83 -0
  1003. package/dist/types/components/eds-link/eds-link.stories.d.ts +74 -0
  1004. package/dist/types/components/eds-logo/eds-logo.d.ts +54 -0
  1005. package/dist/types/components/eds-logo/eds-logo.stories.d.ts +25 -0
  1006. package/dist/types/components/eds-modal/eds-modal.d.ts +44 -0
  1007. package/dist/types/components/eds-modal/eds-modal.stories.d.ts +14 -0
  1008. package/dist/types/components/eds-navigator/eds-navigator.d.ts +42 -0
  1009. package/dist/types/components/eds-navigator/eds-navigator.stories.d.ts +46 -0
  1010. package/dist/types/components/eds-pagination/eds-pagination.d.ts +98 -0
  1011. package/dist/types/components/eds-pagination/eds-pagination.stories.d.ts +108 -0
  1012. package/dist/types/components/eds-progress-bar/eds-progress-bar.d.ts +12 -0
  1013. package/dist/types/components/eds-progress-bar/eds-progress-bar.stories.d.ts +24 -0
  1014. package/dist/types/components/eds-rating/eds-rating.d.ts +36 -0
  1015. package/dist/types/components/eds-rating/eds-rating.stories.d.ts +51 -0
  1016. package/dist/types/components/eds-section/eds-section-core/eds-section-core.d.ts +28 -0
  1017. package/dist/types/components/eds-section/eds-section-core/eds-section-core.stories.d.ts +26 -0
  1018. package/dist/types/components/eds-section/eds-section-heading/eds-section-heading.d.ts +38 -0
  1019. package/dist/types/components/eds-tab/eds-tab.d.ts +15 -0
  1020. package/dist/types/components/eds-table/eds-table.d.ts +66 -0
  1021. package/dist/types/components/eds-table/eds-table.stories.d.ts +147 -0
  1022. package/dist/types/components/eds-tag/eds-tag.d.ts +34 -0
  1023. package/dist/types/components/eds-tag/eds-tag.stories.d.ts +28 -0
  1024. package/dist/types/components/eds-toast/eds-toast.d.ts +28 -0
  1025. package/dist/types/components/eds-toast/eds-toast.stories.d.ts +33 -0
  1026. package/dist/types/components/eds-tooltip/eds-tooltip.d.ts +47 -0
  1027. package/dist/types/components/eds-tooltip/eds-tooltip.stories.d.ts +19 -0
  1028. package/dist/types/components.d.ts +4918 -0
  1029. package/dist/types/eds-docs-ui/colors/color-palette/primary.d.ts +7 -0
  1030. package/dist/types/eds-docs-ui/colors/color-palette/secondary.d.ts +8 -0
  1031. package/dist/types/eds-docs-ui/colors/color-palette/support.d.ts +7 -0
  1032. package/dist/types/eds-docs-ui/colors/gradient-palette/primary.d.ts +7 -0
  1033. package/dist/types/eds-docs-ui/colors/gradient-palette/secondary.d.ts +7 -0
  1034. package/dist/types/eds-docs-ui/colors/gradient-palette/support.d.ts +7 -0
  1035. package/dist/types/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.d.ts +10 -0
  1036. package/dist/types/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.d.ts +10 -0
  1037. package/dist/types/eds-docs-ui/design-tokens/token-list/token-list.d.ts +11 -0
  1038. package/dist/types/eds-docs-ui/design-tokens/token-list/token-list.stories.d.ts +25 -0
  1039. package/dist/types/eds-docs-ui/design-tokens/token-radii/token-radii.d.ts +6 -0
  1040. package/dist/types/eds-docs-ui/design-tokens/token-ratios/token-ratios.d.ts +6 -0
  1041. package/dist/types/eds-docs-ui/design-tokens/token-shadows/token-shadows.d.ts +6 -0
  1042. package/dist/types/eds-docs-ui/design-tokens/token-spacing/token-spacing.d.ts +6 -0
  1043. package/dist/types/eds-docs-ui/design-tokens/token-typography/token-typography.d.ts +6 -0
  1044. package/dist/types/eds-docs-ui/eds-components-section/eds-components-section.d.ts +9 -0
  1045. package/dist/types/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.d.ts +9 -0
  1046. package/dist/types/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.d.ts +9 -0
  1047. package/dist/types/eds-docs-ui/eds-svg-repository/eds-svg-repository.d.ts +7 -0
  1048. package/dist/types/eds-docs-ui/functional/angular.d.ts +2 -0
  1049. package/dist/types/eds-docs-ui/functional/installation.d.ts +2 -0
  1050. package/dist/types/eds-docs-ui/functional/overview.d.ts +2 -0
  1051. package/dist/types/eds-docs-ui/functional/react.d.ts +2 -0
  1052. package/dist/types/eds-docs-ui/functional/usage.d.ts +2 -0
  1053. package/dist/types/eds-docs-ui/functional/vue.d.ts +2 -0
  1054. package/dist/types/eds-docs-ui/logo/logo-space/logo-space.d.ts +6 -0
  1055. package/dist/types/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.d.ts +12 -0
  1056. package/dist/types/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.d.ts +12 -0
  1057. package/dist/types/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.d.ts +6 -0
  1058. package/dist/types/index.d.ts +1 -0
  1059. package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +43 -0
  1060. package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +33 -0
  1061. package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +74 -0
  1062. package/dist/types/shared-ui/eds-footer/eds-footer.stories.d.ts +43 -0
  1063. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +57 -0
  1064. package/dist/types/shared-ui/eds-header/eds-header.d.ts +98 -0
  1065. package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +53 -0
  1066. package/dist/types/shared-ui/eds-login/eds-login.d.ts +50 -0
  1067. package/dist/types/shared-ui/eds-login/eds-login.stories.d.ts +33 -0
  1068. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +77 -0
  1069. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.d.ts +30 -0
  1070. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +25 -0
  1071. package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +43 -0
  1072. package/dist/types/shared-ui/eds-tabs/eds-tabs.stories.d.ts +14 -0
  1073. package/dist/types/shared-ui/eds-tabs-content/eds-tabs-content.d.ts +36 -0
  1074. package/dist/types/shared-ui/eds-tabs-content/eds-tabs-content.stories.d.ts +16 -0
  1075. package/dist/types/shared-ui/eds-toast-manager/eds-toast-manager.d.ts +19 -0
  1076. package/dist/types/shared-ui/eds-toast-manager/eds-toast-manager.stories.d.ts +12 -0
  1077. package/dist/types/shared-ui/eds-user/eds-user.d.ts +81 -0
  1078. package/dist/types/shared-ui/eds-user-modal/eds-user-modal.d.ts +47 -0
  1079. package/dist/types/stencil-public-runtime.d.ts +1678 -0
  1080. package/dist/types/types/global.d.ts +10 -0
  1081. package/dist/types/utils/keycloak.d.ts +31 -0
  1082. package/dist/types/utils/toastManager.d.ts +15 -0
  1083. package/loader/cdn.js +1 -0
  1084. package/loader/index.cjs.js +1 -0
  1085. package/loader/index.d.ts +24 -0
  1086. package/loader/index.es2017.js +1 -0
  1087. package/loader/index.js +2 -0
  1088. package/loader/package.json +11 -0
  1089. package/package.json +20 -0
@@ -0,0 +1,2468 @@
1
+ import { r as registerInstance, h } from './index-b384416e.js';
2
+
3
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
+
5
+ function getDefaultExportFromCjs (x) {
6
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
7
+ }
8
+
9
+ function getDefaultExportFromNamespaceIfPresent (n) {
10
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
11
+ }
12
+
13
+ function getDefaultExportFromNamespaceIfNotNamed (n) {
14
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
15
+ }
16
+
17
+ function getAugmentedNamespace(n) {
18
+ if (n.__esModule) return n;
19
+ var a = Object.defineProperty({}, '__esModule', {value: true});
20
+ Object.keys(n).forEach(function (k) {
21
+ var d = Object.getOwnPropertyDescriptor(n, k);
22
+ Object.defineProperty(a, k, d.get ? d : {
23
+ enumerable: true,
24
+ get: function () {
25
+ return n[k];
26
+ }
27
+ });
28
+ });
29
+ return a;
30
+ }
31
+
32
+ function commonjsRequire (path) {
33
+ throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
34
+ }
35
+
36
+ var prism = {exports: {}};
37
+
38
+ (function (module) {
39
+ /* **********************************************
40
+ Begin prism-core.js
41
+ ********************************************** */
42
+
43
+ /// <reference lib="WebWorker"/>
44
+
45
+ var _self = (typeof window !== 'undefined')
46
+ ? window // if in browser
47
+ : (
48
+ (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)
49
+ ? self // if in worker
50
+ : {} // if in node js
51
+ );
52
+
53
+ /**
54
+ * Prism: Lightweight, robust, elegant syntax highlighting
55
+ *
56
+ * @license MIT <https://opensource.org/licenses/MIT>
57
+ * @author Lea Verou <https://lea.verou.me>
58
+ * @namespace
59
+ * @public
60
+ */
61
+ var Prism = (function (_self) {
62
+
63
+ // Private helper vars
64
+ var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i;
65
+ var uniqueId = 0;
66
+
67
+ // The grammar object for plaintext
68
+ var plainTextGrammar = {};
69
+
70
+
71
+ var _ = {
72
+ /**
73
+ * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
74
+ * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
75
+ * additional languages or plugins yourself.
76
+ *
77
+ * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
78
+ *
79
+ * You obviously have to change this value before the automatic highlighting started. To do this, you can add an
80
+ * empty Prism object into the global scope before loading the Prism script like this:
81
+ *
82
+ * ```js
83
+ * window.Prism = window.Prism || {};
84
+ * Prism.manual = true;
85
+ * // add a new <script> to load Prism's script
86
+ * ```
87
+ *
88
+ * @default false
89
+ * @type {boolean}
90
+ * @memberof Prism
91
+ * @public
92
+ */
93
+ manual: _self.Prism && _self.Prism.manual,
94
+ /**
95
+ * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
96
+ * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
97
+ * own worker, you don't want it to do this.
98
+ *
99
+ * By setting this value to `true`, Prism will not add its own listeners to the worker.
100
+ *
101
+ * You obviously have to change this value before Prism executes. To do this, you can add an
102
+ * empty Prism object into the global scope before loading the Prism script like this:
103
+ *
104
+ * ```js
105
+ * window.Prism = window.Prism || {};
106
+ * Prism.disableWorkerMessageHandler = true;
107
+ * // Load Prism's script
108
+ * ```
109
+ *
110
+ * @default false
111
+ * @type {boolean}
112
+ * @memberof Prism
113
+ * @public
114
+ */
115
+ disableWorkerMessageHandler: _self.Prism && _self.Prism.disableWorkerMessageHandler,
116
+
117
+ /**
118
+ * A namespace for utility methods.
119
+ *
120
+ * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
121
+ * change or disappear at any time.
122
+ *
123
+ * @namespace
124
+ * @memberof Prism
125
+ */
126
+ util: {
127
+ encode: function encode(tokens) {
128
+ if (tokens instanceof Token) {
129
+ return new Token(tokens.type, encode(tokens.content), tokens.alias);
130
+ } else if (Array.isArray(tokens)) {
131
+ return tokens.map(encode);
132
+ } else {
133
+ return tokens.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/\u00a0/g, ' ');
134
+ }
135
+ },
136
+
137
+ /**
138
+ * Returns the name of the type of the given value.
139
+ *
140
+ * @param {any} o
141
+ * @returns {string}
142
+ * @example
143
+ * type(null) === 'Null'
144
+ * type(undefined) === 'Undefined'
145
+ * type(123) === 'Number'
146
+ * type('foo') === 'String'
147
+ * type(true) === 'Boolean'
148
+ * type([1, 2]) === 'Array'
149
+ * type({}) === 'Object'
150
+ * type(String) === 'Function'
151
+ * type(/abc+/) === 'RegExp'
152
+ */
153
+ type: function (o) {
154
+ return Object.prototype.toString.call(o).slice(8, -1);
155
+ },
156
+
157
+ /**
158
+ * Returns a unique number for the given object. Later calls will still return the same number.
159
+ *
160
+ * @param {Object} obj
161
+ * @returns {number}
162
+ */
163
+ objId: function (obj) {
164
+ if (!obj['__id']) {
165
+ Object.defineProperty(obj, '__id', { value: ++uniqueId });
166
+ }
167
+ return obj['__id'];
168
+ },
169
+
170
+ /**
171
+ * Creates a deep clone of the given object.
172
+ *
173
+ * The main intended use of this function is to clone language definitions.
174
+ *
175
+ * @param {T} o
176
+ * @param {Record<number, any>} [visited]
177
+ * @returns {T}
178
+ * @template T
179
+ */
180
+ clone: function deepClone(o, visited) {
181
+ visited = visited || {};
182
+
183
+ var clone; var id;
184
+ switch (_.util.type(o)) {
185
+ case 'Object':
186
+ id = _.util.objId(o);
187
+ if (visited[id]) {
188
+ return visited[id];
189
+ }
190
+ clone = /** @type {Record<string, any>} */ ({});
191
+ visited[id] = clone;
192
+
193
+ for (var key in o) {
194
+ if (o.hasOwnProperty(key)) {
195
+ clone[key] = deepClone(o[key], visited);
196
+ }
197
+ }
198
+
199
+ return /** @type {any} */ (clone);
200
+
201
+ case 'Array':
202
+ id = _.util.objId(o);
203
+ if (visited[id]) {
204
+ return visited[id];
205
+ }
206
+ clone = [];
207
+ visited[id] = clone;
208
+
209
+ (/** @type {Array} */(/** @type {any} */(o))).forEach(function (v, i) {
210
+ clone[i] = deepClone(v, visited);
211
+ });
212
+
213
+ return /** @type {any} */ (clone);
214
+
215
+ default:
216
+ return o;
217
+ }
218
+ },
219
+
220
+ /**
221
+ * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
222
+ *
223
+ * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
224
+ *
225
+ * @param {Element} element
226
+ * @returns {string}
227
+ */
228
+ getLanguage: function (element) {
229
+ while (element) {
230
+ var m = lang.exec(element.className);
231
+ if (m) {
232
+ return m[1].toLowerCase();
233
+ }
234
+ element = element.parentElement;
235
+ }
236
+ return 'none';
237
+ },
238
+
239
+ /**
240
+ * Sets the Prism `language-xxxx` class of the given element.
241
+ *
242
+ * @param {Element} element
243
+ * @param {string} language
244
+ * @returns {void}
245
+ */
246
+ setLanguage: function (element, language) {
247
+ // remove all `language-xxxx` classes
248
+ // (this might leave behind a leading space)
249
+ element.className = element.className.replace(RegExp(lang, 'gi'), '');
250
+
251
+ // add the new `language-xxxx` class
252
+ // (using `classList` will automatically clean up spaces for us)
253
+ element.classList.add('language-' + language);
254
+ },
255
+
256
+ /**
257
+ * Returns the script element that is currently executing.
258
+ *
259
+ * This does __not__ work for line script element.
260
+ *
261
+ * @returns {HTMLScriptElement | null}
262
+ */
263
+ currentScript: function () {
264
+ if (typeof document === 'undefined') {
265
+ return null;
266
+ }
267
+ if ('currentScript' in document && 1 < 2 /* hack to trip TS' flow analysis */) {
268
+ return /** @type {any} */ (document.currentScript);
269
+ }
270
+
271
+ // IE11 workaround
272
+ // we'll get the src of the current script by parsing IE11's error stack trace
273
+ // this will not work for inline scripts
274
+
275
+ try {
276
+ throw new Error();
277
+ } catch (err) {
278
+ // Get file src url from stack. Specifically works with the format of stack traces in IE.
279
+ // A stack will look like this:
280
+ //
281
+ // Error
282
+ // at _.util.currentScript (http://localhost/components/prism-core.js:119:5)
283
+ // at Global code (http://localhost/components/prism-core.js:606:1)
284
+
285
+ var src = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(err.stack) || [])[1];
286
+ if (src) {
287
+ var scripts = document.getElementsByTagName('script');
288
+ for (var i in scripts) {
289
+ if (scripts[i].src == src) {
290
+ return scripts[i];
291
+ }
292
+ }
293
+ }
294
+ return null;
295
+ }
296
+ },
297
+
298
+ /**
299
+ * Returns whether a given class is active for `element`.
300
+ *
301
+ * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
302
+ * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
303
+ * given class is just the given class with a `no-` prefix.
304
+ *
305
+ * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
306
+ * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
307
+ * ancestors have the given class or the negated version of it, then the default activation will be returned.
308
+ *
309
+ * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
310
+ * version of it, the class is considered active.
311
+ *
312
+ * @param {Element} element
313
+ * @param {string} className
314
+ * @param {boolean} [defaultActivation=false]
315
+ * @returns {boolean}
316
+ */
317
+ isActive: function (element, className, defaultActivation) {
318
+ var no = 'no-' + className;
319
+
320
+ while (element) {
321
+ var classList = element.classList;
322
+ if (classList.contains(className)) {
323
+ return true;
324
+ }
325
+ if (classList.contains(no)) {
326
+ return false;
327
+ }
328
+ element = element.parentElement;
329
+ }
330
+ return !!defaultActivation;
331
+ }
332
+ },
333
+
334
+ /**
335
+ * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
336
+ *
337
+ * @namespace
338
+ * @memberof Prism
339
+ * @public
340
+ */
341
+ languages: {
342
+ /**
343
+ * The grammar for plain, unformatted text.
344
+ */
345
+ plain: plainTextGrammar,
346
+ plaintext: plainTextGrammar,
347
+ text: plainTextGrammar,
348
+ txt: plainTextGrammar,
349
+
350
+ /**
351
+ * Creates a deep copy of the language with the given id and appends the given tokens.
352
+ *
353
+ * If a token in `redef` also appears in the copied language, then the existing token in the copied language
354
+ * will be overwritten at its original position.
355
+ *
356
+ * ## Best practices
357
+ *
358
+ * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
359
+ * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
360
+ * understand the language definition because, normally, the order of tokens matters in Prism grammars.
361
+ *
362
+ * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
363
+ * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
364
+ *
365
+ * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
366
+ * @param {Grammar} redef The new tokens to append.
367
+ * @returns {Grammar} The new language created.
368
+ * @public
369
+ * @example
370
+ * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
371
+ * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
372
+ * // at its original position
373
+ * 'comment': { ... },
374
+ * // CSS doesn't have a 'color' token, so this token will be appended
375
+ * 'color': /\b(?:red|green|blue)\b/
376
+ * });
377
+ */
378
+ extend: function (id, redef) {
379
+ var lang = _.util.clone(_.languages[id]);
380
+
381
+ for (var key in redef) {
382
+ lang[key] = redef[key];
383
+ }
384
+
385
+ return lang;
386
+ },
387
+
388
+ /**
389
+ * Inserts tokens _before_ another token in a language definition or any other grammar.
390
+ *
391
+ * ## Usage
392
+ *
393
+ * This helper method makes it easy to modify existing languages. For example, the CSS language definition
394
+ * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
395
+ * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
396
+ * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
397
+ * this:
398
+ *
399
+ * ```js
400
+ * Prism.languages.markup.style = {
401
+ * // token
402
+ * };
403
+ * ```
404
+ *
405
+ * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
406
+ * before existing tokens. For the CSS example above, you would use it like this:
407
+ *
408
+ * ```js
409
+ * Prism.languages.insertBefore('markup', 'cdata', {
410
+ * 'style': {
411
+ * // token
412
+ * }
413
+ * });
414
+ * ```
415
+ *
416
+ * ## Special cases
417
+ *
418
+ * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
419
+ * will be ignored.
420
+ *
421
+ * This behavior can be used to insert tokens after `before`:
422
+ *
423
+ * ```js
424
+ * Prism.languages.insertBefore('markup', 'comment', {
425
+ * 'comment': Prism.languages.markup.comment,
426
+ * // tokens after 'comment'
427
+ * });
428
+ * ```
429
+ *
430
+ * ## Limitations
431
+ *
432
+ * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
433
+ * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
434
+ * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
435
+ * deleting properties which is necessary to insert at arbitrary positions.
436
+ *
437
+ * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
438
+ * Instead, it will create a new object and replace all references to the target object with the new one. This
439
+ * can be done without temporarily deleting properties, so the iteration order is well-defined.
440
+ *
441
+ * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
442
+ * you hold the target object in a variable, then the value of the variable will not change.
443
+ *
444
+ * ```js
445
+ * var oldMarkup = Prism.languages.markup;
446
+ * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
447
+ *
448
+ * assert(oldMarkup !== Prism.languages.markup);
449
+ * assert(newMarkup === Prism.languages.markup);
450
+ * ```
451
+ *
452
+ * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
453
+ * object to be modified.
454
+ * @param {string} before The key to insert before.
455
+ * @param {Grammar} insert An object containing the key-value pairs to be inserted.
456
+ * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
457
+ * object to be modified.
458
+ *
459
+ * Defaults to `Prism.languages`.
460
+ * @returns {Grammar} The new grammar object.
461
+ * @public
462
+ */
463
+ insertBefore: function (inside, before, insert, root) {
464
+ root = root || /** @type {any} */ (_.languages);
465
+ var grammar = root[inside];
466
+ /** @type {Grammar} */
467
+ var ret = {};
468
+
469
+ for (var token in grammar) {
470
+ if (grammar.hasOwnProperty(token)) {
471
+
472
+ if (token == before) {
473
+ for (var newToken in insert) {
474
+ if (insert.hasOwnProperty(newToken)) {
475
+ ret[newToken] = insert[newToken];
476
+ }
477
+ }
478
+ }
479
+
480
+ // Do not insert token which also occur in insert. See #1525
481
+ if (!insert.hasOwnProperty(token)) {
482
+ ret[token] = grammar[token];
483
+ }
484
+ }
485
+ }
486
+
487
+ var old = root[inside];
488
+ root[inside] = ret;
489
+
490
+ // Update references in other language definitions
491
+ _.languages.DFS(_.languages, function (key, value) {
492
+ if (value === old && key != inside) {
493
+ this[key] = ret;
494
+ }
495
+ });
496
+
497
+ return ret;
498
+ },
499
+
500
+ // Traverse a language definition with Depth First Search
501
+ DFS: function DFS(o, callback, type, visited) {
502
+ visited = visited || {};
503
+
504
+ var objId = _.util.objId;
505
+
506
+ for (var i in o) {
507
+ if (o.hasOwnProperty(i)) {
508
+ callback.call(o, i, o[i], type || i);
509
+
510
+ var property = o[i];
511
+ var propertyType = _.util.type(property);
512
+
513
+ if (propertyType === 'Object' && !visited[objId(property)]) {
514
+ visited[objId(property)] = true;
515
+ DFS(property, callback, null, visited);
516
+ } else if (propertyType === 'Array' && !visited[objId(property)]) {
517
+ visited[objId(property)] = true;
518
+ DFS(property, callback, i, visited);
519
+ }
520
+ }
521
+ }
522
+ }
523
+ },
524
+
525
+ plugins: {},
526
+
527
+ /**
528
+ * This is the most high-level function in Prism’s API.
529
+ * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on
530
+ * each one of them.
531
+ *
532
+ * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.
533
+ *
534
+ * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.
535
+ * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.
536
+ * @memberof Prism
537
+ * @public
538
+ */
539
+ highlightAll: function (async, callback) {
540
+ _.highlightAllUnder(document, async, callback);
541
+ },
542
+
543
+ /**
544
+ * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
545
+ * {@link Prism.highlightElement} on each one of them.
546
+ *
547
+ * The following hooks will be run:
548
+ * 1. `before-highlightall`
549
+ * 2. `before-all-elements-highlight`
550
+ * 3. All hooks of {@link Prism.highlightElement} for each element.
551
+ *
552
+ * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.
553
+ * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.
554
+ * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.
555
+ * @memberof Prism
556
+ * @public
557
+ */
558
+ highlightAllUnder: function (container, async, callback) {
559
+ var env = {
560
+ callback: callback,
561
+ container: container,
562
+ selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
563
+ };
564
+
565
+ _.hooks.run('before-highlightall', env);
566
+
567
+ env.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));
568
+
569
+ _.hooks.run('before-all-elements-highlight', env);
570
+
571
+ for (var i = 0, element; (element = env.elements[i++]);) {
572
+ _.highlightElement(element, async === true, env.callback);
573
+ }
574
+ },
575
+
576
+ /**
577
+ * Highlights the code inside a single element.
578
+ *
579
+ * The following hooks will be run:
580
+ * 1. `before-sanity-check`
581
+ * 2. `before-highlight`
582
+ * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.
583
+ * 4. `before-insert`
584
+ * 5. `after-highlight`
585
+ * 6. `complete`
586
+ *
587
+ * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for
588
+ * the element's language.
589
+ *
590
+ * @param {Element} element The element containing the code.
591
+ * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.
592
+ * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers
593
+ * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is
594
+ * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).
595
+ *
596
+ * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for
597
+ * asynchronous highlighting to work. You can build your own bundle on the
598
+ * [Download page](https://prismjs.com/download.html).
599
+ * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.
600
+ * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.
601
+ * @memberof Prism
602
+ * @public
603
+ */
604
+ highlightElement: function (element, async, callback) {
605
+ // Find language
606
+ var language = _.util.getLanguage(element);
607
+ var grammar = _.languages[language];
608
+
609
+ // Set language on the element, if not present
610
+ _.util.setLanguage(element, language);
611
+
612
+ // Set language on the parent, for styling
613
+ var parent = element.parentElement;
614
+ if (parent && parent.nodeName.toLowerCase() === 'pre') {
615
+ _.util.setLanguage(parent, language);
616
+ }
617
+
618
+ var code = element.textContent;
619
+
620
+ var env = {
621
+ element: element,
622
+ language: language,
623
+ grammar: grammar,
624
+ code: code
625
+ };
626
+
627
+ function insertHighlightedCode(highlightedCode) {
628
+ env.highlightedCode = highlightedCode;
629
+
630
+ _.hooks.run('before-insert', env);
631
+
632
+ env.element.innerHTML = env.highlightedCode;
633
+
634
+ _.hooks.run('after-highlight', env);
635
+ _.hooks.run('complete', env);
636
+ callback && callback.call(env.element);
637
+ }
638
+
639
+ _.hooks.run('before-sanity-check', env);
640
+
641
+ // plugins may change/add the parent/element
642
+ parent = env.element.parentElement;
643
+ if (parent && parent.nodeName.toLowerCase() === 'pre' && !parent.hasAttribute('tabindex')) {
644
+ parent.setAttribute('tabindex', '0');
645
+ }
646
+
647
+ if (!env.code) {
648
+ _.hooks.run('complete', env);
649
+ callback && callback.call(env.element);
650
+ return;
651
+ }
652
+
653
+ _.hooks.run('before-highlight', env);
654
+
655
+ if (!env.grammar) {
656
+ insertHighlightedCode(_.util.encode(env.code));
657
+ return;
658
+ }
659
+
660
+ if (async && _self.Worker) {
661
+ var worker = new Worker(_.filename);
662
+
663
+ worker.onmessage = function (evt) {
664
+ insertHighlightedCode(evt.data);
665
+ };
666
+
667
+ worker.postMessage(JSON.stringify({
668
+ language: env.language,
669
+ code: env.code,
670
+ immediateClose: true
671
+ }));
672
+ } else {
673
+ insertHighlightedCode(_.highlight(env.code, env.grammar, env.language));
674
+ }
675
+ },
676
+
677
+ /**
678
+ * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
679
+ * and the language definitions to use, and returns a string with the HTML produced.
680
+ *
681
+ * The following hooks will be run:
682
+ * 1. `before-tokenize`
683
+ * 2. `after-tokenize`
684
+ * 3. `wrap`: On each {@link Token}.
685
+ *
686
+ * @param {string} text A string with the code to be highlighted.
687
+ * @param {Grammar} grammar An object containing the tokens to use.
688
+ *
689
+ * Usually a language definition like `Prism.languages.markup`.
690
+ * @param {string} language The name of the language definition passed to `grammar`.
691
+ * @returns {string} The highlighted HTML.
692
+ * @memberof Prism
693
+ * @public
694
+ * @example
695
+ * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
696
+ */
697
+ highlight: function (text, grammar, language) {
698
+ var env = {
699
+ code: text,
700
+ grammar: grammar,
701
+ language: language
702
+ };
703
+ _.hooks.run('before-tokenize', env);
704
+ if (!env.grammar) {
705
+ throw new Error('The language "' + env.language + '" has no grammar.');
706
+ }
707
+ env.tokens = _.tokenize(env.code, env.grammar);
708
+ _.hooks.run('after-tokenize', env);
709
+ return Token.stringify(_.util.encode(env.tokens), env.language);
710
+ },
711
+
712
+ /**
713
+ * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
714
+ * and the language definitions to use, and returns an array with the tokenized code.
715
+ *
716
+ * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
717
+ *
718
+ * This method could be useful in other contexts as well, as a very crude parser.
719
+ *
720
+ * @param {string} text A string with the code to be highlighted.
721
+ * @param {Grammar} grammar An object containing the tokens to use.
722
+ *
723
+ * Usually a language definition like `Prism.languages.markup`.
724
+ * @returns {TokenStream} An array of strings and tokens, a token stream.
725
+ * @memberof Prism
726
+ * @public
727
+ * @example
728
+ * let code = `var foo = 0;`;
729
+ * let tokens = Prism.tokenize(code, Prism.languages.javascript);
730
+ * tokens.forEach(token => {
731
+ * if (token instanceof Prism.Token && token.type === 'number') {
732
+ * console.log(`Found numeric literal: ${token.content}`);
733
+ * }
734
+ * });
735
+ */
736
+ tokenize: function (text, grammar) {
737
+ var rest = grammar.rest;
738
+ if (rest) {
739
+ for (var token in rest) {
740
+ grammar[token] = rest[token];
741
+ }
742
+
743
+ delete grammar.rest;
744
+ }
745
+
746
+ var tokenList = new LinkedList();
747
+ addAfter(tokenList, tokenList.head, text);
748
+
749
+ matchGrammar(text, tokenList, grammar, tokenList.head, 0);
750
+
751
+ return toArray(tokenList);
752
+ },
753
+
754
+ /**
755
+ * @namespace
756
+ * @memberof Prism
757
+ * @public
758
+ */
759
+ hooks: {
760
+ all: {},
761
+
762
+ /**
763
+ * Adds the given callback to the list of callbacks for the given hook.
764
+ *
765
+ * The callback will be invoked when the hook it is registered for is run.
766
+ * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
767
+ *
768
+ * One callback function can be registered to multiple hooks and the same hook multiple times.
769
+ *
770
+ * @param {string} name The name of the hook.
771
+ * @param {HookCallback} callback The callback function which is given environment variables.
772
+ * @public
773
+ */
774
+ add: function (name, callback) {
775
+ var hooks = _.hooks.all;
776
+
777
+ hooks[name] = hooks[name] || [];
778
+
779
+ hooks[name].push(callback);
780
+ },
781
+
782
+ /**
783
+ * Runs a hook invoking all registered callbacks with the given environment variables.
784
+ *
785
+ * Callbacks will be invoked synchronously and in the order in which they were registered.
786
+ *
787
+ * @param {string} name The name of the hook.
788
+ * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
789
+ * @public
790
+ */
791
+ run: function (name, env) {
792
+ var callbacks = _.hooks.all[name];
793
+
794
+ if (!callbacks || !callbacks.length) {
795
+ return;
796
+ }
797
+
798
+ for (var i = 0, callback; (callback = callbacks[i++]);) {
799
+ callback(env);
800
+ }
801
+ }
802
+ },
803
+
804
+ Token: Token
805
+ };
806
+ _self.Prism = _;
807
+
808
+
809
+ // Typescript note:
810
+ // The following can be used to import the Token type in JSDoc:
811
+ //
812
+ // @typedef {InstanceType<import("./prism-core")["Token"]>} Token
813
+
814
+ /**
815
+ * Creates a new token.
816
+ *
817
+ * @param {string} type See {@link Token#type type}
818
+ * @param {string | TokenStream} content See {@link Token#content content}
819
+ * @param {string|string[]} [alias] The alias(es) of the token.
820
+ * @param {string} [matchedStr=""] A copy of the full string this token was created from.
821
+ * @class
822
+ * @global
823
+ * @public
824
+ */
825
+ function Token(type, content, alias, matchedStr) {
826
+ /**
827
+ * The type of the token.
828
+ *
829
+ * This is usually the key of a pattern in a {@link Grammar}.
830
+ *
831
+ * @type {string}
832
+ * @see GrammarToken
833
+ * @public
834
+ */
835
+ this.type = type;
836
+ /**
837
+ * The strings or tokens contained by this token.
838
+ *
839
+ * This will be a token stream if the pattern matched also defined an `inside` grammar.
840
+ *
841
+ * @type {string | TokenStream}
842
+ * @public
843
+ */
844
+ this.content = content;
845
+ /**
846
+ * The alias(es) of the token.
847
+ *
848
+ * @type {string|string[]}
849
+ * @see GrammarToken
850
+ * @public
851
+ */
852
+ this.alias = alias;
853
+ // Copy of the full string this token was created from
854
+ this.length = (matchedStr || '').length | 0;
855
+ }
856
+
857
+ /**
858
+ * A token stream is an array of strings and {@link Token Token} objects.
859
+ *
860
+ * Token streams have to fulfill a few properties that are assumed by most functions (mostly internal ones) that process
861
+ * them.
862
+ *
863
+ * 1. No adjacent strings.
864
+ * 2. No empty strings.
865
+ *
866
+ * The only exception here is the token stream that only contains the empty string and nothing else.
867
+ *
868
+ * @typedef {Array<string | Token>} TokenStream
869
+ * @global
870
+ * @public
871
+ */
872
+
873
+ /**
874
+ * Converts the given token or token stream to an HTML representation.
875
+ *
876
+ * The following hooks will be run:
877
+ * 1. `wrap`: On each {@link Token}.
878
+ *
879
+ * @param {string | Token | TokenStream} o The token or token stream to be converted.
880
+ * @param {string} language The name of current language.
881
+ * @returns {string} The HTML representation of the token or token stream.
882
+ * @memberof Token
883
+ * @static
884
+ */
885
+ Token.stringify = function stringify(o, language) {
886
+ if (typeof o == 'string') {
887
+ return o;
888
+ }
889
+ if (Array.isArray(o)) {
890
+ var s = '';
891
+ o.forEach(function (e) {
892
+ s += stringify(e, language);
893
+ });
894
+ return s;
895
+ }
896
+
897
+ var env = {
898
+ type: o.type,
899
+ content: stringify(o.content, language),
900
+ tag: 'span',
901
+ classes: ['token', o.type],
902
+ attributes: {},
903
+ language: language
904
+ };
905
+
906
+ var aliases = o.alias;
907
+ if (aliases) {
908
+ if (Array.isArray(aliases)) {
909
+ Array.prototype.push.apply(env.classes, aliases);
910
+ } else {
911
+ env.classes.push(aliases);
912
+ }
913
+ }
914
+
915
+ _.hooks.run('wrap', env);
916
+
917
+ var attributes = '';
918
+ for (var name in env.attributes) {
919
+ attributes += ' ' + name + '="' + (env.attributes[name] || '').replace(/"/g, '&quot;') + '"';
920
+ }
921
+
922
+ return '<' + env.tag + ' class="' + env.classes.join(' ') + '"' + attributes + '>' + env.content + '</' + env.tag + '>';
923
+ };
924
+
925
+ /**
926
+ * @param {RegExp} pattern
927
+ * @param {number} pos
928
+ * @param {string} text
929
+ * @param {boolean} lookbehind
930
+ * @returns {RegExpExecArray | null}
931
+ */
932
+ function matchPattern(pattern, pos, text, lookbehind) {
933
+ pattern.lastIndex = pos;
934
+ var match = pattern.exec(text);
935
+ if (match && lookbehind && match[1]) {
936
+ // change the match to remove the text matched by the Prism lookbehind group
937
+ var lookbehindLength = match[1].length;
938
+ match.index += lookbehindLength;
939
+ match[0] = match[0].slice(lookbehindLength);
940
+ }
941
+ return match;
942
+ }
943
+
944
+ /**
945
+ * @param {string} text
946
+ * @param {LinkedList<string | Token>} tokenList
947
+ * @param {any} grammar
948
+ * @param {LinkedListNode<string | Token>} startNode
949
+ * @param {number} startPos
950
+ * @param {RematchOptions} [rematch]
951
+ * @returns {void}
952
+ * @private
953
+ *
954
+ * @typedef RematchOptions
955
+ * @property {string} cause
956
+ * @property {number} reach
957
+ */
958
+ function matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) {
959
+ for (var token in grammar) {
960
+ if (!grammar.hasOwnProperty(token) || !grammar[token]) {
961
+ continue;
962
+ }
963
+
964
+ var patterns = grammar[token];
965
+ patterns = Array.isArray(patterns) ? patterns : [patterns];
966
+
967
+ for (var j = 0; j < patterns.length; ++j) {
968
+ if (rematch && rematch.cause == token + ',' + j) {
969
+ return;
970
+ }
971
+
972
+ var patternObj = patterns[j];
973
+ var inside = patternObj.inside;
974
+ var lookbehind = !!patternObj.lookbehind;
975
+ var greedy = !!patternObj.greedy;
976
+ var alias = patternObj.alias;
977
+
978
+ if (greedy && !patternObj.pattern.global) {
979
+ // Without the global flag, lastIndex won't work
980
+ var flags = patternObj.pattern.toString().match(/[imsuy]*$/)[0];
981
+ patternObj.pattern = RegExp(patternObj.pattern.source, flags + 'g');
982
+ }
983
+
984
+ /** @type {RegExp} */
985
+ var pattern = patternObj.pattern || patternObj;
986
+
987
+ for ( // iterate the token list and keep track of the current token/string position
988
+ var currentNode = startNode.next, pos = startPos;
989
+ currentNode !== tokenList.tail;
990
+ pos += currentNode.value.length, currentNode = currentNode.next
991
+ ) {
992
+
993
+ if (rematch && pos >= rematch.reach) {
994
+ break;
995
+ }
996
+
997
+ var str = currentNode.value;
998
+
999
+ if (tokenList.length > text.length) {
1000
+ // Something went terribly wrong, ABORT, ABORT!
1001
+ return;
1002
+ }
1003
+
1004
+ if (str instanceof Token) {
1005
+ continue;
1006
+ }
1007
+
1008
+ var removeCount = 1; // this is the to parameter of removeBetween
1009
+ var match;
1010
+
1011
+ if (greedy) {
1012
+ match = matchPattern(pattern, pos, text, lookbehind);
1013
+ if (!match || match.index >= text.length) {
1014
+ break;
1015
+ }
1016
+
1017
+ var from = match.index;
1018
+ var to = match.index + match[0].length;
1019
+ var p = pos;
1020
+
1021
+ // find the node that contains the match
1022
+ p += currentNode.value.length;
1023
+ while (from >= p) {
1024
+ currentNode = currentNode.next;
1025
+ p += currentNode.value.length;
1026
+ }
1027
+ // adjust pos (and p)
1028
+ p -= currentNode.value.length;
1029
+ pos = p;
1030
+
1031
+ // the current node is a Token, then the match starts inside another Token, which is invalid
1032
+ if (currentNode.value instanceof Token) {
1033
+ continue;
1034
+ }
1035
+
1036
+ // find the last node which is affected by this match
1037
+ for (
1038
+ var k = currentNode;
1039
+ k !== tokenList.tail && (p < to || typeof k.value === 'string');
1040
+ k = k.next
1041
+ ) {
1042
+ removeCount++;
1043
+ p += k.value.length;
1044
+ }
1045
+ removeCount--;
1046
+
1047
+ // replace with the new match
1048
+ str = text.slice(pos, p);
1049
+ match.index -= pos;
1050
+ } else {
1051
+ match = matchPattern(pattern, 0, str, lookbehind);
1052
+ if (!match) {
1053
+ continue;
1054
+ }
1055
+ }
1056
+
1057
+ // eslint-disable-next-line no-redeclare
1058
+ var from = match.index;
1059
+ var matchStr = match[0];
1060
+ var before = str.slice(0, from);
1061
+ var after = str.slice(from + matchStr.length);
1062
+
1063
+ var reach = pos + str.length;
1064
+ if (rematch && reach > rematch.reach) {
1065
+ rematch.reach = reach;
1066
+ }
1067
+
1068
+ var removeFrom = currentNode.prev;
1069
+
1070
+ if (before) {
1071
+ removeFrom = addAfter(tokenList, removeFrom, before);
1072
+ pos += before.length;
1073
+ }
1074
+
1075
+ removeRange(tokenList, removeFrom, removeCount);
1076
+
1077
+ var wrapped = new Token(token, inside ? _.tokenize(matchStr, inside) : matchStr, alias, matchStr);
1078
+ currentNode = addAfter(tokenList, removeFrom, wrapped);
1079
+
1080
+ if (after) {
1081
+ addAfter(tokenList, currentNode, after);
1082
+ }
1083
+
1084
+ if (removeCount > 1) {
1085
+ // at least one Token object was removed, so we have to do some rematching
1086
+ // this can only happen if the current pattern is greedy
1087
+
1088
+ /** @type {RematchOptions} */
1089
+ var nestedRematch = {
1090
+ cause: token + ',' + j,
1091
+ reach: reach
1092
+ };
1093
+ matchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch);
1094
+
1095
+ // the reach might have been extended because of the rematching
1096
+ if (rematch && nestedRematch.reach > rematch.reach) {
1097
+ rematch.reach = nestedRematch.reach;
1098
+ }
1099
+ }
1100
+ }
1101
+ }
1102
+ }
1103
+ }
1104
+
1105
+ /**
1106
+ * @typedef LinkedListNode
1107
+ * @property {T} value
1108
+ * @property {LinkedListNode<T> | null} prev The previous node.
1109
+ * @property {LinkedListNode<T> | null} next The next node.
1110
+ * @template T
1111
+ * @private
1112
+ */
1113
+
1114
+ /**
1115
+ * @template T
1116
+ * @private
1117
+ */
1118
+ function LinkedList() {
1119
+ /** @type {LinkedListNode<T>} */
1120
+ var head = { value: null, prev: null, next: null };
1121
+ /** @type {LinkedListNode<T>} */
1122
+ var tail = { value: null, prev: head, next: null };
1123
+ head.next = tail;
1124
+
1125
+ /** @type {LinkedListNode<T>} */
1126
+ this.head = head;
1127
+ /** @type {LinkedListNode<T>} */
1128
+ this.tail = tail;
1129
+ this.length = 0;
1130
+ }
1131
+
1132
+ /**
1133
+ * Adds a new node with the given value to the list.
1134
+ *
1135
+ * @param {LinkedList<T>} list
1136
+ * @param {LinkedListNode<T>} node
1137
+ * @param {T} value
1138
+ * @returns {LinkedListNode<T>} The added node.
1139
+ * @template T
1140
+ */
1141
+ function addAfter(list, node, value) {
1142
+ // assumes that node != list.tail && values.length >= 0
1143
+ var next = node.next;
1144
+
1145
+ var newNode = { value: value, prev: node, next: next };
1146
+ node.next = newNode;
1147
+ next.prev = newNode;
1148
+ list.length++;
1149
+
1150
+ return newNode;
1151
+ }
1152
+ /**
1153
+ * Removes `count` nodes after the given node. The given node will not be removed.
1154
+ *
1155
+ * @param {LinkedList<T>} list
1156
+ * @param {LinkedListNode<T>} node
1157
+ * @param {number} count
1158
+ * @template T
1159
+ */
1160
+ function removeRange(list, node, count) {
1161
+ var next = node.next;
1162
+ for (var i = 0; i < count && next !== list.tail; i++) {
1163
+ next = next.next;
1164
+ }
1165
+ node.next = next;
1166
+ next.prev = node;
1167
+ list.length -= i;
1168
+ }
1169
+ /**
1170
+ * @param {LinkedList<T>} list
1171
+ * @returns {T[]}
1172
+ * @template T
1173
+ */
1174
+ function toArray(list) {
1175
+ var array = [];
1176
+ var node = list.head.next;
1177
+ while (node !== list.tail) {
1178
+ array.push(node.value);
1179
+ node = node.next;
1180
+ }
1181
+ return array;
1182
+ }
1183
+
1184
+
1185
+ if (!_self.document) {
1186
+ if (!_self.addEventListener) {
1187
+ // in Node.js
1188
+ return _;
1189
+ }
1190
+
1191
+ if (!_.disableWorkerMessageHandler) {
1192
+ // In worker
1193
+ _self.addEventListener('message', function (evt) {
1194
+ var message = JSON.parse(evt.data);
1195
+ var lang = message.language;
1196
+ var code = message.code;
1197
+ var immediateClose = message.immediateClose;
1198
+
1199
+ _self.postMessage(_.highlight(code, _.languages[lang], lang));
1200
+ if (immediateClose) {
1201
+ _self.close();
1202
+ }
1203
+ }, false);
1204
+ }
1205
+
1206
+ return _;
1207
+ }
1208
+
1209
+ // Get current script and highlight
1210
+ var script = _.util.currentScript();
1211
+
1212
+ if (script) {
1213
+ _.filename = script.src;
1214
+
1215
+ if (script.hasAttribute('data-manual')) {
1216
+ _.manual = true;
1217
+ }
1218
+ }
1219
+
1220
+ function highlightAutomaticallyCallback() {
1221
+ if (!_.manual) {
1222
+ _.highlightAll();
1223
+ }
1224
+ }
1225
+
1226
+ if (!_.manual) {
1227
+ // If the document state is "loading", then we'll use DOMContentLoaded.
1228
+ // If the document state is "interactive" and the prism.js script is deferred, then we'll also use the
1229
+ // DOMContentLoaded event because there might be some plugins or languages which have also been deferred and they
1230
+ // might take longer one animation frame to execute which can create a race condition where only some plugins have
1231
+ // been loaded when Prism.highlightAll() is executed, depending on how fast resources are loaded.
1232
+ // See https://github.com/PrismJS/prism/issues/2102
1233
+ var readyState = document.readyState;
1234
+ if (readyState === 'loading' || readyState === 'interactive' && script && script.defer) {
1235
+ document.addEventListener('DOMContentLoaded', highlightAutomaticallyCallback);
1236
+ } else {
1237
+ if (window.requestAnimationFrame) {
1238
+ window.requestAnimationFrame(highlightAutomaticallyCallback);
1239
+ } else {
1240
+ window.setTimeout(highlightAutomaticallyCallback, 16);
1241
+ }
1242
+ }
1243
+ }
1244
+
1245
+ return _;
1246
+
1247
+ }(_self));
1248
+
1249
+ if ('object' !== 'undefined' && module.exports) {
1250
+ module.exports = Prism;
1251
+ }
1252
+
1253
+ // hack for components to work correctly in node.js
1254
+ if (typeof commonjsGlobal !== 'undefined') {
1255
+ commonjsGlobal.Prism = Prism;
1256
+ }
1257
+
1258
+ // some additional documentation/types
1259
+
1260
+ /**
1261
+ * The expansion of a simple `RegExp` literal to support additional properties.
1262
+ *
1263
+ * @typedef GrammarToken
1264
+ * @property {RegExp} pattern The regular expression of the token.
1265
+ * @property {boolean} [lookbehind=false] If `true`, then the first capturing group of `pattern` will (effectively)
1266
+ * behave as a lookbehind group meaning that the captured text will not be part of the matched text of the new token.
1267
+ * @property {boolean} [greedy=false] Whether the token is greedy.
1268
+ * @property {string|string[]} [alias] An optional alias or list of aliases.
1269
+ * @property {Grammar} [inside] The nested grammar of this token.
1270
+ *
1271
+ * The `inside` grammar will be used to tokenize the text value of each token of this kind.
1272
+ *
1273
+ * This can be used to make nested and even recursive language definitions.
1274
+ *
1275
+ * Note: This can cause infinite recursion. Be careful when you embed different languages or even the same language into
1276
+ * each another.
1277
+ * @global
1278
+ * @public
1279
+ */
1280
+
1281
+ /**
1282
+ * @typedef Grammar
1283
+ * @type {Object<string, RegExp | GrammarToken | Array<RegExp | GrammarToken>>}
1284
+ * @property {Grammar} [rest] An optional grammar object that will be appended to this grammar.
1285
+ * @global
1286
+ * @public
1287
+ */
1288
+
1289
+ /**
1290
+ * A function which will invoked after an element was successfully highlighted.
1291
+ *
1292
+ * @callback HighlightCallback
1293
+ * @param {Element} element The element successfully highlighted.
1294
+ * @returns {void}
1295
+ * @global
1296
+ * @public
1297
+ */
1298
+
1299
+ /**
1300
+ * @callback HookCallback
1301
+ * @param {Object<string, any>} env The environment variables of the hook.
1302
+ * @returns {void}
1303
+ * @global
1304
+ * @public
1305
+ */
1306
+
1307
+
1308
+ /* **********************************************
1309
+ Begin prism-markup.js
1310
+ ********************************************** */
1311
+
1312
+ Prism.languages.markup = {
1313
+ 'comment': {
1314
+ pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
1315
+ greedy: true
1316
+ },
1317
+ 'prolog': {
1318
+ pattern: /<\?[\s\S]+?\?>/,
1319
+ greedy: true
1320
+ },
1321
+ 'doctype': {
1322
+ // https://www.w3.org/TR/xml/#NT-doctypedecl
1323
+ pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
1324
+ greedy: true,
1325
+ inside: {
1326
+ 'internal-subset': {
1327
+ pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
1328
+ lookbehind: true,
1329
+ greedy: true,
1330
+ inside: null // see below
1331
+ },
1332
+ 'string': {
1333
+ pattern: /"[^"]*"|'[^']*'/,
1334
+ greedy: true
1335
+ },
1336
+ 'punctuation': /^<!|>$|[[\]]/,
1337
+ 'doctype-tag': /^DOCTYPE/i,
1338
+ 'name': /[^\s<>'"]+/
1339
+ }
1340
+ },
1341
+ 'cdata': {
1342
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
1343
+ greedy: true
1344
+ },
1345
+ 'tag': {
1346
+ pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
1347
+ greedy: true,
1348
+ inside: {
1349
+ 'tag': {
1350
+ pattern: /^<\/?[^\s>\/]+/,
1351
+ inside: {
1352
+ 'punctuation': /^<\/?/,
1353
+ 'namespace': /^[^\s>\/:]+:/
1354
+ }
1355
+ },
1356
+ 'special-attr': [],
1357
+ 'attr-value': {
1358
+ pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
1359
+ inside: {
1360
+ 'punctuation': [
1361
+ {
1362
+ pattern: /^=/,
1363
+ alias: 'attr-equals'
1364
+ },
1365
+ {
1366
+ pattern: /^(\s*)["']|["']$/,
1367
+ lookbehind: true
1368
+ }
1369
+ ]
1370
+ }
1371
+ },
1372
+ 'punctuation': /\/?>/,
1373
+ 'attr-name': {
1374
+ pattern: /[^\s>\/]+/,
1375
+ inside: {
1376
+ 'namespace': /^[^\s>\/:]+:/
1377
+ }
1378
+ }
1379
+
1380
+ }
1381
+ },
1382
+ 'entity': [
1383
+ {
1384
+ pattern: /&[\da-z]{1,8};/i,
1385
+ alias: 'named-entity'
1386
+ },
1387
+ /&#x?[\da-f]{1,8};/i
1388
+ ]
1389
+ };
1390
+
1391
+ Prism.languages.markup['tag'].inside['attr-value'].inside['entity'] =
1392
+ Prism.languages.markup['entity'];
1393
+ Prism.languages.markup['doctype'].inside['internal-subset'].inside = Prism.languages.markup;
1394
+
1395
+ // Plugin to make entity title show the real entity, idea by Roman Komarov
1396
+ Prism.hooks.add('wrap', function (env) {
1397
+
1398
+ if (env.type === 'entity') {
1399
+ env.attributes['title'] = env.content.replace(/&amp;/, '&');
1400
+ }
1401
+ });
1402
+
1403
+ Object.defineProperty(Prism.languages.markup.tag, 'addInlined', {
1404
+ /**
1405
+ * Adds an inlined language to markup.
1406
+ *
1407
+ * An example of an inlined language is CSS with `<style>` tags.
1408
+ *
1409
+ * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
1410
+ * case insensitive.
1411
+ * @param {string} lang The language key.
1412
+ * @example
1413
+ * addInlined('style', 'css');
1414
+ */
1415
+ value: function addInlined(tagName, lang) {
1416
+ var includedCdataInside = {};
1417
+ includedCdataInside['language-' + lang] = {
1418
+ pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
1419
+ lookbehind: true,
1420
+ inside: Prism.languages[lang]
1421
+ };
1422
+ includedCdataInside['cdata'] = /^<!\[CDATA\[|\]\]>$/i;
1423
+
1424
+ var inside = {
1425
+ 'included-cdata': {
1426
+ pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
1427
+ inside: includedCdataInside
1428
+ }
1429
+ };
1430
+ inside['language-' + lang] = {
1431
+ pattern: /[\s\S]+/,
1432
+ inside: Prism.languages[lang]
1433
+ };
1434
+
1435
+ var def = {};
1436
+ def[tagName] = {
1437
+ pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function () { return tagName; }), 'i'),
1438
+ lookbehind: true,
1439
+ greedy: true,
1440
+ inside: inside
1441
+ };
1442
+
1443
+ Prism.languages.insertBefore('markup', 'cdata', def);
1444
+ }
1445
+ });
1446
+ Object.defineProperty(Prism.languages.markup.tag, 'addAttribute', {
1447
+ /**
1448
+ * Adds an pattern to highlight languages embedded in HTML attributes.
1449
+ *
1450
+ * An example of an inlined language is CSS with `style` attributes.
1451
+ *
1452
+ * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
1453
+ * case insensitive.
1454
+ * @param {string} lang The language key.
1455
+ * @example
1456
+ * addAttribute('style', 'css');
1457
+ */
1458
+ value: function (attrName, lang) {
1459
+ Prism.languages.markup.tag.inside['special-attr'].push({
1460
+ pattern: RegExp(
1461
+ /(^|["'\s])/.source + '(?:' + attrName + ')' + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
1462
+ 'i'
1463
+ ),
1464
+ lookbehind: true,
1465
+ inside: {
1466
+ 'attr-name': /^[^\s=]+/,
1467
+ 'attr-value': {
1468
+ pattern: /=[\s\S]+/,
1469
+ inside: {
1470
+ 'value': {
1471
+ pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
1472
+ lookbehind: true,
1473
+ alias: [lang, 'language-' + lang],
1474
+ inside: Prism.languages[lang]
1475
+ },
1476
+ 'punctuation': [
1477
+ {
1478
+ pattern: /^=/,
1479
+ alias: 'attr-equals'
1480
+ },
1481
+ /"|'/
1482
+ ]
1483
+ }
1484
+ }
1485
+ }
1486
+ });
1487
+ }
1488
+ });
1489
+
1490
+ Prism.languages.html = Prism.languages.markup;
1491
+ Prism.languages.mathml = Prism.languages.markup;
1492
+ Prism.languages.svg = Prism.languages.markup;
1493
+
1494
+ Prism.languages.xml = Prism.languages.extend('markup', {});
1495
+ Prism.languages.ssml = Prism.languages.xml;
1496
+ Prism.languages.atom = Prism.languages.xml;
1497
+ Prism.languages.rss = Prism.languages.xml;
1498
+
1499
+
1500
+ /* **********************************************
1501
+ Begin prism-css.js
1502
+ ********************************************** */
1503
+
1504
+ (function (Prism) {
1505
+
1506
+ var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
1507
+
1508
+ Prism.languages.css = {
1509
+ 'comment': /\/\*[\s\S]*?\*\//,
1510
+ 'atrule': {
1511
+ pattern: RegExp('@[\\w-](?:' + /[^;{\s"']|\s+(?!\s)/.source + '|' + string.source + ')*?' + /(?:;|(?=\s*\{))/.source),
1512
+ inside: {
1513
+ 'rule': /^@[\w-]+/,
1514
+ 'selector-function-argument': {
1515
+ pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
1516
+ lookbehind: true,
1517
+ alias: 'selector'
1518
+ },
1519
+ 'keyword': {
1520
+ pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
1521
+ lookbehind: true
1522
+ }
1523
+ // See rest below
1524
+ }
1525
+ },
1526
+ 'url': {
1527
+ // https://drafts.csswg.org/css-values-3/#urls
1528
+ pattern: RegExp('\\burl\\((?:' + string.source + '|' + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ')\\)', 'i'),
1529
+ greedy: true,
1530
+ inside: {
1531
+ 'function': /^url/i,
1532
+ 'punctuation': /^\(|\)$/,
1533
+ 'string': {
1534
+ pattern: RegExp('^' + string.source + '$'),
1535
+ alias: 'url'
1536
+ }
1537
+ }
1538
+ },
1539
+ 'selector': {
1540
+ pattern: RegExp('(^|[{}\\s])[^{}\\s](?:[^{};"\'\\s]|\\s+(?![\\s{])|' + string.source + ')*(?=\\s*\\{)'),
1541
+ lookbehind: true
1542
+ },
1543
+ 'string': {
1544
+ pattern: string,
1545
+ greedy: true
1546
+ },
1547
+ 'property': {
1548
+ pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
1549
+ lookbehind: true
1550
+ },
1551
+ 'important': /!important\b/i,
1552
+ 'function': {
1553
+ pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
1554
+ lookbehind: true
1555
+ },
1556
+ 'punctuation': /[(){};:,]/
1557
+ };
1558
+
1559
+ Prism.languages.css['atrule'].inside.rest = Prism.languages.css;
1560
+
1561
+ var markup = Prism.languages.markup;
1562
+ if (markup) {
1563
+ markup.tag.addInlined('style', 'css');
1564
+ markup.tag.addAttribute('style', 'css');
1565
+ }
1566
+
1567
+ }(Prism));
1568
+
1569
+
1570
+ /* **********************************************
1571
+ Begin prism-clike.js
1572
+ ********************************************** */
1573
+
1574
+ Prism.languages.clike = {
1575
+ 'comment': [
1576
+ {
1577
+ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
1578
+ lookbehind: true,
1579
+ greedy: true
1580
+ },
1581
+ {
1582
+ pattern: /(^|[^\\:])\/\/.*/,
1583
+ lookbehind: true,
1584
+ greedy: true
1585
+ }
1586
+ ],
1587
+ 'string': {
1588
+ pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
1589
+ greedy: true
1590
+ },
1591
+ 'class-name': {
1592
+ pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
1593
+ lookbehind: true,
1594
+ inside: {
1595
+ 'punctuation': /[.\\]/
1596
+ }
1597
+ },
1598
+ 'keyword': /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
1599
+ 'boolean': /\b(?:false|true)\b/,
1600
+ 'function': /\b\w+(?=\()/,
1601
+ 'number': /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
1602
+ 'operator': /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
1603
+ 'punctuation': /[{}[\];(),.:]/
1604
+ };
1605
+
1606
+
1607
+ /* **********************************************
1608
+ Begin prism-javascript.js
1609
+ ********************************************** */
1610
+
1611
+ Prism.languages.javascript = Prism.languages.extend('clike', {
1612
+ 'class-name': [
1613
+ Prism.languages.clike['class-name'],
1614
+ {
1615
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
1616
+ lookbehind: true
1617
+ }
1618
+ ],
1619
+ 'keyword': [
1620
+ {
1621
+ pattern: /((?:^|\})\s*)catch\b/,
1622
+ lookbehind: true
1623
+ },
1624
+ {
1625
+ pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
1626
+ lookbehind: true
1627
+ },
1628
+ ],
1629
+ // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
1630
+ 'function': /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
1631
+ 'number': {
1632
+ pattern: RegExp(
1633
+ /(^|[^\w$])/.source +
1634
+ '(?:' +
1635
+ (
1636
+ // constant
1637
+ /NaN|Infinity/.source +
1638
+ '|' +
1639
+ // binary integer
1640
+ /0[bB][01]+(?:_[01]+)*n?/.source +
1641
+ '|' +
1642
+ // octal integer
1643
+ /0[oO][0-7]+(?:_[0-7]+)*n?/.source +
1644
+ '|' +
1645
+ // hexadecimal integer
1646
+ /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source +
1647
+ '|' +
1648
+ // decimal bigint
1649
+ /\d+(?:_\d+)*n/.source +
1650
+ '|' +
1651
+ // decimal number (integer or float) but no bigint
1652
+ /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source
1653
+ ) +
1654
+ ')' +
1655
+ /(?![\w$])/.source
1656
+ ),
1657
+ lookbehind: true
1658
+ },
1659
+ 'operator': /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
1660
+ });
1661
+
1662
+ Prism.languages.javascript['class-name'][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;
1663
+
1664
+ Prism.languages.insertBefore('javascript', 'keyword', {
1665
+ 'regex': {
1666
+ pattern: RegExp(
1667
+ // lookbehind
1668
+ // eslint-disable-next-line regexp/no-dupe-characters-character-class
1669
+ /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source +
1670
+ // Regex pattern:
1671
+ // There are 2 regex patterns here. The RegExp set notation proposal added support for nested character
1672
+ // classes if the `v` flag is present. Unfortunately, nested CCs are both context-free and incompatible
1673
+ // with the only syntax, so we have to define 2 different regex patterns.
1674
+ /\//.source +
1675
+ '(?:' +
1676
+ /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source +
1677
+ '|' +
1678
+ // `v` flag syntax. This supports 3 levels of nested character classes.
1679
+ /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source +
1680
+ ')' +
1681
+ // lookahead
1682
+ /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source
1683
+ ),
1684
+ lookbehind: true,
1685
+ greedy: true,
1686
+ inside: {
1687
+ 'regex-source': {
1688
+ pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
1689
+ lookbehind: true,
1690
+ alias: 'language-regex',
1691
+ inside: Prism.languages.regex
1692
+ },
1693
+ 'regex-delimiter': /^\/|\/$/,
1694
+ 'regex-flags': /^[a-z]+$/,
1695
+ }
1696
+ },
1697
+ // This must be declared before keyword because we use "function" inside the look-forward
1698
+ 'function-variable': {
1699
+ pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
1700
+ alias: 'function'
1701
+ },
1702
+ 'parameter': [
1703
+ {
1704
+ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
1705
+ lookbehind: true,
1706
+ inside: Prism.languages.javascript
1707
+ },
1708
+ {
1709
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
1710
+ lookbehind: true,
1711
+ inside: Prism.languages.javascript
1712
+ },
1713
+ {
1714
+ pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
1715
+ lookbehind: true,
1716
+ inside: Prism.languages.javascript
1717
+ },
1718
+ {
1719
+ pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
1720
+ lookbehind: true,
1721
+ inside: Prism.languages.javascript
1722
+ }
1723
+ ],
1724
+ 'constant': /\b[A-Z](?:[A-Z_]|\dx?)*\b/
1725
+ });
1726
+
1727
+ Prism.languages.insertBefore('javascript', 'string', {
1728
+ 'hashbang': {
1729
+ pattern: /^#!.*/,
1730
+ greedy: true,
1731
+ alias: 'comment'
1732
+ },
1733
+ 'template-string': {
1734
+ pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
1735
+ greedy: true,
1736
+ inside: {
1737
+ 'template-punctuation': {
1738
+ pattern: /^`|`$/,
1739
+ alias: 'string'
1740
+ },
1741
+ 'interpolation': {
1742
+ pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
1743
+ lookbehind: true,
1744
+ inside: {
1745
+ 'interpolation-punctuation': {
1746
+ pattern: /^\$\{|\}$/,
1747
+ alias: 'punctuation'
1748
+ },
1749
+ rest: Prism.languages.javascript
1750
+ }
1751
+ },
1752
+ 'string': /[\s\S]+/
1753
+ }
1754
+ },
1755
+ 'string-property': {
1756
+ pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
1757
+ lookbehind: true,
1758
+ greedy: true,
1759
+ alias: 'property'
1760
+ }
1761
+ });
1762
+
1763
+ Prism.languages.insertBefore('javascript', 'operator', {
1764
+ 'literal-property': {
1765
+ pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
1766
+ lookbehind: true,
1767
+ alias: 'property'
1768
+ },
1769
+ });
1770
+
1771
+ if (Prism.languages.markup) {
1772
+ Prism.languages.markup.tag.addInlined('script', 'javascript');
1773
+
1774
+ // add attribute support for all DOM events.
1775
+ // https://developer.mozilla.org/en-US/docs/Web/Events#Standard_events
1776
+ Prism.languages.markup.tag.addAttribute(
1777
+ /on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,
1778
+ 'javascript'
1779
+ );
1780
+ }
1781
+
1782
+ Prism.languages.js = Prism.languages.javascript;
1783
+
1784
+
1785
+ /* **********************************************
1786
+ Begin prism-file-highlight.js
1787
+ ********************************************** */
1788
+
1789
+ (function () {
1790
+
1791
+ if (typeof Prism === 'undefined' || typeof document === 'undefined') {
1792
+ return;
1793
+ }
1794
+
1795
+ // https://developer.mozilla.org/en-US/docs/Web/API/Element/matches#Polyfill
1796
+ if (!Element.prototype.matches) {
1797
+ Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
1798
+ }
1799
+
1800
+ var LOADING_MESSAGE = 'Loading…';
1801
+ var FAILURE_MESSAGE = function (status, message) {
1802
+ return '✖ Error ' + status + ' while fetching file: ' + message;
1803
+ };
1804
+ var FAILURE_EMPTY_MESSAGE = '✖ Error: File does not exist or is empty';
1805
+
1806
+ var EXTENSIONS = {
1807
+ 'js': 'javascript',
1808
+ 'py': 'python',
1809
+ 'rb': 'ruby',
1810
+ 'ps1': 'powershell',
1811
+ 'psm1': 'powershell',
1812
+ 'sh': 'bash',
1813
+ 'bat': 'batch',
1814
+ 'h': 'c',
1815
+ 'tex': 'latex'
1816
+ };
1817
+
1818
+ var STATUS_ATTR = 'data-src-status';
1819
+ var STATUS_LOADING = 'loading';
1820
+ var STATUS_LOADED = 'loaded';
1821
+ var STATUS_FAILED = 'failed';
1822
+
1823
+ var SELECTOR = 'pre[data-src]:not([' + STATUS_ATTR + '="' + STATUS_LOADED + '"])'
1824
+ + ':not([' + STATUS_ATTR + '="' + STATUS_LOADING + '"])';
1825
+
1826
+ /**
1827
+ * Loads the given file.
1828
+ *
1829
+ * @param {string} src The URL or path of the source file to load.
1830
+ * @param {(result: string) => void} success
1831
+ * @param {(reason: string) => void} error
1832
+ */
1833
+ function loadFile(src, success, error) {
1834
+ var xhr = new XMLHttpRequest();
1835
+ xhr.open('GET', src, true);
1836
+ xhr.onreadystatechange = function () {
1837
+ if (xhr.readyState == 4) {
1838
+ if (xhr.status < 400 && xhr.responseText) {
1839
+ success(xhr.responseText);
1840
+ } else {
1841
+ if (xhr.status >= 400) {
1842
+ error(FAILURE_MESSAGE(xhr.status, xhr.statusText));
1843
+ } else {
1844
+ error(FAILURE_EMPTY_MESSAGE);
1845
+ }
1846
+ }
1847
+ }
1848
+ };
1849
+ xhr.send(null);
1850
+ }
1851
+
1852
+ /**
1853
+ * Parses the given range.
1854
+ *
1855
+ * This returns a range with inclusive ends.
1856
+ *
1857
+ * @param {string | null | undefined} range
1858
+ * @returns {[number, number | undefined] | undefined}
1859
+ */
1860
+ function parseRange(range) {
1861
+ var m = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(range || '');
1862
+ if (m) {
1863
+ var start = Number(m[1]);
1864
+ var comma = m[2];
1865
+ var end = m[3];
1866
+
1867
+ if (!comma) {
1868
+ return [start, start];
1869
+ }
1870
+ if (!end) {
1871
+ return [start, undefined];
1872
+ }
1873
+ return [start, Number(end)];
1874
+ }
1875
+ return undefined;
1876
+ }
1877
+
1878
+ Prism.hooks.add('before-highlightall', function (env) {
1879
+ env.selector += ', ' + SELECTOR;
1880
+ });
1881
+
1882
+ Prism.hooks.add('before-sanity-check', function (env) {
1883
+ var pre = /** @type {HTMLPreElement} */ (env.element);
1884
+ if (pre.matches(SELECTOR)) {
1885
+ env.code = ''; // fast-path the whole thing and go to complete
1886
+
1887
+ pre.setAttribute(STATUS_ATTR, STATUS_LOADING); // mark as loading
1888
+
1889
+ // add code element with loading message
1890
+ var code = pre.appendChild(document.createElement('CODE'));
1891
+ code.textContent = LOADING_MESSAGE;
1892
+
1893
+ var src = pre.getAttribute('data-src');
1894
+
1895
+ var language = env.language;
1896
+ if (language === 'none') {
1897
+ // the language might be 'none' because there is no language set;
1898
+ // in this case, we want to use the extension as the language
1899
+ var extension = (/\.(\w+)$/.exec(src) || [, 'none'])[1];
1900
+ language = EXTENSIONS[extension] || extension;
1901
+ }
1902
+
1903
+ // set language classes
1904
+ Prism.util.setLanguage(code, language);
1905
+ Prism.util.setLanguage(pre, language);
1906
+
1907
+ // preload the language
1908
+ var autoloader = Prism.plugins.autoloader;
1909
+ if (autoloader) {
1910
+ autoloader.loadLanguages(language);
1911
+ }
1912
+
1913
+ // load file
1914
+ loadFile(
1915
+ src,
1916
+ function (text) {
1917
+ // mark as loaded
1918
+ pre.setAttribute(STATUS_ATTR, STATUS_LOADED);
1919
+
1920
+ // handle data-range
1921
+ var range = parseRange(pre.getAttribute('data-range'));
1922
+ if (range) {
1923
+ var lines = text.split(/\r\n?|\n/g);
1924
+
1925
+ // the range is one-based and inclusive on both ends
1926
+ var start = range[0];
1927
+ var end = range[1] == null ? lines.length : range[1];
1928
+
1929
+ if (start < 0) { start += lines.length; }
1930
+ start = Math.max(0, Math.min(start - 1, lines.length));
1931
+ if (end < 0) { end += lines.length; }
1932
+ end = Math.max(0, Math.min(end, lines.length));
1933
+
1934
+ text = lines.slice(start, end).join('\n');
1935
+
1936
+ // add data-start for line numbers
1937
+ if (!pre.hasAttribute('data-start')) {
1938
+ pre.setAttribute('data-start', String(start + 1));
1939
+ }
1940
+ }
1941
+
1942
+ // highlight code
1943
+ code.textContent = text;
1944
+ Prism.highlightElement(code);
1945
+ },
1946
+ function (error) {
1947
+ // mark as failed
1948
+ pre.setAttribute(STATUS_ATTR, STATUS_FAILED);
1949
+
1950
+ code.textContent = error;
1951
+ }
1952
+ );
1953
+ }
1954
+ });
1955
+
1956
+ Prism.plugins.fileHighlight = {
1957
+ /**
1958
+ * Executes the File Highlight plugin for all matching `pre` elements under the given container.
1959
+ *
1960
+ * Note: Elements which are already loaded or currently loading will not be touched by this method.
1961
+ *
1962
+ * @param {ParentNode} [container=document]
1963
+ */
1964
+ highlight: function highlight(container) {
1965
+ var elements = (container || document).querySelectorAll(SELECTOR);
1966
+
1967
+ for (var i = 0, element; (element = elements[i++]);) {
1968
+ Prism.highlightElement(element);
1969
+ }
1970
+ }
1971
+ };
1972
+
1973
+ var logged = false;
1974
+ /** @deprecated Use `Prism.plugins.fileHighlight.highlight` instead. */
1975
+ Prism.fileHighlight = function () {
1976
+ if (!logged) {
1977
+ console.warn('Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead.');
1978
+ logged = true;
1979
+ }
1980
+ Prism.plugins.fileHighlight.highlight.apply(this, arguments);
1981
+ };
1982
+
1983
+ }());
1984
+ }(prism));
1985
+
1986
+ const Prism$1 = prism.exports;
1987
+
1988
+ Prism.languages.python = {
1989
+ 'comment': {
1990
+ pattern: /(^|[^\\])#.*/,
1991
+ lookbehind: true,
1992
+ greedy: true
1993
+ },
1994
+ 'string-interpolation': {
1995
+ pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
1996
+ greedy: true,
1997
+ inside: {
1998
+ 'interpolation': {
1999
+ // "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
2000
+ pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
2001
+ lookbehind: true,
2002
+ inside: {
2003
+ 'format-spec': {
2004
+ pattern: /(:)[^:(){}]+(?=\}$)/,
2005
+ lookbehind: true
2006
+ },
2007
+ 'conversion-option': {
2008
+ pattern: /![sra](?=[:}]$)/,
2009
+ alias: 'punctuation'
2010
+ },
2011
+ rest: null
2012
+ }
2013
+ },
2014
+ 'string': /[\s\S]+/
2015
+ }
2016
+ },
2017
+ 'triple-quoted-string': {
2018
+ pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
2019
+ greedy: true,
2020
+ alias: 'string'
2021
+ },
2022
+ 'string': {
2023
+ pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
2024
+ greedy: true
2025
+ },
2026
+ 'function': {
2027
+ pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
2028
+ lookbehind: true
2029
+ },
2030
+ 'class-name': {
2031
+ pattern: /(\bclass\s+)\w+/i,
2032
+ lookbehind: true
2033
+ },
2034
+ 'decorator': {
2035
+ pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
2036
+ lookbehind: true,
2037
+ alias: ['annotation', 'punctuation'],
2038
+ inside: {
2039
+ 'punctuation': /\./
2040
+ }
2041
+ },
2042
+ 'keyword': /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
2043
+ 'builtin': /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
2044
+ 'boolean': /\b(?:False|None|True)\b/,
2045
+ 'number': /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
2046
+ 'operator': /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
2047
+ 'punctuation': /[{}[\];(),.:]/
2048
+ };
2049
+
2050
+ Prism.languages.python['string-interpolation'].inside['interpolation'].inside.rest = Prism.languages.python;
2051
+
2052
+ Prism.languages.py = Prism.languages.python;
2053
+
2054
+ (function (Prism) {
2055
+ // $ set | grep '^[A-Z][^[:space:]]*=' | cut -d= -f1 | tr '\n' '|'
2056
+ // + LC_ALL, RANDOM, REPLY, SECONDS.
2057
+ // + make sure PS1..4 are here as they are not always set,
2058
+ // - some useless things.
2059
+ var envVars = '\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b';
2060
+
2061
+ var commandAfterHeredoc = {
2062
+ pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
2063
+ lookbehind: true,
2064
+ alias: 'punctuation', // this looks reasonably well in all themes
2065
+ inside: null // see below
2066
+ };
2067
+
2068
+ var insideString = {
2069
+ 'bash': commandAfterHeredoc,
2070
+ 'environment': {
2071
+ pattern: RegExp('\\$' + envVars),
2072
+ alias: 'constant'
2073
+ },
2074
+ 'variable': [
2075
+ // [0]: Arithmetic Environment
2076
+ {
2077
+ pattern: /\$?\(\([\s\S]+?\)\)/,
2078
+ greedy: true,
2079
+ inside: {
2080
+ // If there is a $ sign at the beginning highlight $(( and )) as variable
2081
+ 'variable': [
2082
+ {
2083
+ pattern: /(^\$\(\([\s\S]+)\)\)/,
2084
+ lookbehind: true
2085
+ },
2086
+ /^\$\(\(/
2087
+ ],
2088
+ 'number': /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
2089
+ // Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
2090
+ 'operator': /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
2091
+ // If there is no $ sign at the beginning highlight (( and )) as punctuation
2092
+ 'punctuation': /\(\(?|\)\)?|,|;/
2093
+ }
2094
+ },
2095
+ // [1]: Command Substitution
2096
+ {
2097
+ pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
2098
+ greedy: true,
2099
+ inside: {
2100
+ 'variable': /^\$\(|^`|\)$|`$/
2101
+ }
2102
+ },
2103
+ // [2]: Brace expansion
2104
+ {
2105
+ pattern: /\$\{[^}]+\}/,
2106
+ greedy: true,
2107
+ inside: {
2108
+ 'operator': /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
2109
+ 'punctuation': /[\[\]]/,
2110
+ 'environment': {
2111
+ pattern: RegExp('(\\{)' + envVars),
2112
+ lookbehind: true,
2113
+ alias: 'constant'
2114
+ }
2115
+ }
2116
+ },
2117
+ /\$(?:\w+|[#?*!@$])/
2118
+ ],
2119
+ // Escape sequences from echo and printf's manuals, and escaped quotes.
2120
+ 'entity': /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
2121
+ };
2122
+
2123
+ Prism.languages.bash = {
2124
+ 'shebang': {
2125
+ pattern: /^#!\s*\/.*/,
2126
+ alias: 'important'
2127
+ },
2128
+ 'comment': {
2129
+ pattern: /(^|[^"{\\$])#.*/,
2130
+ lookbehind: true
2131
+ },
2132
+ 'function-name': [
2133
+ // a) function foo {
2134
+ // b) foo() {
2135
+ // c) function foo() {
2136
+ // but not “foo {”
2137
+ {
2138
+ // a) and c)
2139
+ pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
2140
+ lookbehind: true,
2141
+ alias: 'function'
2142
+ },
2143
+ {
2144
+ // b)
2145
+ pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
2146
+ alias: 'function'
2147
+ }
2148
+ ],
2149
+ // Highlight variable names as variables in for and select beginnings.
2150
+ 'for-or-select': {
2151
+ pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
2152
+ alias: 'variable',
2153
+ lookbehind: true
2154
+ },
2155
+ // Highlight variable names as variables in the left-hand part
2156
+ // of assignments (“=” and “+=”).
2157
+ 'assign-left': {
2158
+ pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
2159
+ inside: {
2160
+ 'environment': {
2161
+ pattern: RegExp('(^|[\\s;|&]|[<>]\\()' + envVars),
2162
+ lookbehind: true,
2163
+ alias: 'constant'
2164
+ }
2165
+ },
2166
+ alias: 'variable',
2167
+ lookbehind: true
2168
+ },
2169
+ // Highlight parameter names as variables
2170
+ 'parameter': {
2171
+ pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
2172
+ alias: 'variable',
2173
+ lookbehind: true
2174
+ },
2175
+ 'string': [
2176
+ // Support for Here-documents https://en.wikipedia.org/wiki/Here_document
2177
+ {
2178
+ pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
2179
+ lookbehind: true,
2180
+ greedy: true,
2181
+ inside: insideString
2182
+ },
2183
+ // Here-document with quotes around the tag
2184
+ // → No expansion (so no “inside”).
2185
+ {
2186
+ pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
2187
+ lookbehind: true,
2188
+ greedy: true,
2189
+ inside: {
2190
+ 'bash': commandAfterHeredoc
2191
+ }
2192
+ },
2193
+ // “Normal” string
2194
+ {
2195
+ // https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
2196
+ pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
2197
+ lookbehind: true,
2198
+ greedy: true,
2199
+ inside: insideString
2200
+ },
2201
+ {
2202
+ // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
2203
+ pattern: /(^|[^$\\])'[^']*'/,
2204
+ lookbehind: true,
2205
+ greedy: true
2206
+ },
2207
+ {
2208
+ // https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
2209
+ pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
2210
+ greedy: true,
2211
+ inside: {
2212
+ 'entity': insideString.entity
2213
+ }
2214
+ }
2215
+ ],
2216
+ 'environment': {
2217
+ pattern: RegExp('\\$?' + envVars),
2218
+ alias: 'constant'
2219
+ },
2220
+ 'variable': insideString.variable,
2221
+ 'function': {
2222
+ pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
2223
+ lookbehind: true
2224
+ },
2225
+ 'keyword': {
2226
+ pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
2227
+ lookbehind: true
2228
+ },
2229
+ // https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
2230
+ 'builtin': {
2231
+ pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
2232
+ lookbehind: true,
2233
+ // Alias added to make those easier to distinguish from strings.
2234
+ alias: 'class-name'
2235
+ },
2236
+ 'boolean': {
2237
+ pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
2238
+ lookbehind: true
2239
+ },
2240
+ 'file-descriptor': {
2241
+ pattern: /\B&\d\b/,
2242
+ alias: 'important'
2243
+ },
2244
+ 'operator': {
2245
+ // Lots of redirections here, but not just that.
2246
+ pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
2247
+ inside: {
2248
+ 'file-descriptor': {
2249
+ pattern: /^\d/,
2250
+ alias: 'important'
2251
+ }
2252
+ }
2253
+ },
2254
+ 'punctuation': /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
2255
+ 'number': {
2256
+ pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
2257
+ lookbehind: true
2258
+ }
2259
+ };
2260
+
2261
+ commandAfterHeredoc.inside = Prism.languages.bash;
2262
+
2263
+ /* Patterns in command substitution. */
2264
+ var toBeCopied = [
2265
+ 'comment',
2266
+ 'function-name',
2267
+ 'for-or-select',
2268
+ 'assign-left',
2269
+ 'parameter',
2270
+ 'string',
2271
+ 'environment',
2272
+ 'function',
2273
+ 'keyword',
2274
+ 'builtin',
2275
+ 'boolean',
2276
+ 'file-descriptor',
2277
+ 'operator',
2278
+ 'punctuation',
2279
+ 'number'
2280
+ ];
2281
+ var inside = insideString.variable[1].inside;
2282
+ for (var i = 0; i < toBeCopied.length; i++) {
2283
+ inside[toBeCopied[i]] = Prism.languages.bash[toBeCopied[i]];
2284
+ }
2285
+
2286
+ Prism.languages.sh = Prism.languages.bash;
2287
+ Prism.languages.shell = Prism.languages.bash;
2288
+ }(Prism));
2289
+
2290
+ (function (Prism) {
2291
+
2292
+ // https://yaml.org/spec/1.2/spec.html#c-ns-anchor-property
2293
+ // https://yaml.org/spec/1.2/spec.html#c-ns-alias-node
2294
+ var anchorOrAlias = /[*&][^\s[\]{},]+/;
2295
+ // https://yaml.org/spec/1.2/spec.html#c-ns-tag-property
2296
+ var tag = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/;
2297
+ // https://yaml.org/spec/1.2/spec.html#c-ns-properties(n,c)
2298
+ var properties = '(?:' + tag.source + '(?:[ \t]+' + anchorOrAlias.source + ')?|'
2299
+ + anchorOrAlias.source + '(?:[ \t]+' + tag.source + ')?)';
2300
+ // https://yaml.org/spec/1.2/spec.html#ns-plain(n,c)
2301
+ // This is a simplified version that doesn't support "#" and multiline keys
2302
+ // All these long scarry character classes are simplified versions of YAML's characters
2303
+ var plainKey = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source
2304
+ .replace(/<PLAIN>/g, function () { return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source; });
2305
+ var string = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
2306
+
2307
+ /**
2308
+ *
2309
+ * @param {string} value
2310
+ * @param {string} [flags]
2311
+ * @returns {RegExp}
2312
+ */
2313
+ function createValuePattern(value, flags) {
2314
+ flags = (flags || '').replace(/m/g, '') + 'm'; // add m flag
2315
+ var pattern = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source
2316
+ .replace(/<<prop>>/g, function () { return properties; }).replace(/<<value>>/g, function () { return value; });
2317
+ return RegExp(pattern, flags);
2318
+ }
2319
+
2320
+ Prism.languages.yaml = {
2321
+ 'scalar': {
2322
+ pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source
2323
+ .replace(/<<prop>>/g, function () { return properties; })),
2324
+ lookbehind: true,
2325
+ alias: 'string'
2326
+ },
2327
+ 'comment': /#.*/,
2328
+ 'key': {
2329
+ pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source
2330
+ .replace(/<<prop>>/g, function () { return properties; })
2331
+ .replace(/<<key>>/g, function () { return '(?:' + plainKey + '|' + string + ')'; })),
2332
+ lookbehind: true,
2333
+ greedy: true,
2334
+ alias: 'atrule'
2335
+ },
2336
+ 'directive': {
2337
+ pattern: /(^[ \t]*)%.+/m,
2338
+ lookbehind: true,
2339
+ alias: 'important'
2340
+ },
2341
+ 'datetime': {
2342
+ pattern: createValuePattern(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
2343
+ lookbehind: true,
2344
+ alias: 'number'
2345
+ },
2346
+ 'boolean': {
2347
+ pattern: createValuePattern(/false|true/.source, 'i'),
2348
+ lookbehind: true,
2349
+ alias: 'important'
2350
+ },
2351
+ 'null': {
2352
+ pattern: createValuePattern(/null|~/.source, 'i'),
2353
+ lookbehind: true,
2354
+ alias: 'important'
2355
+ },
2356
+ 'string': {
2357
+ pattern: createValuePattern(string),
2358
+ lookbehind: true,
2359
+ greedy: true
2360
+ },
2361
+ 'number': {
2362
+ pattern: createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, 'i'),
2363
+ lookbehind: true
2364
+ },
2365
+ 'tag': tag,
2366
+ 'important': anchorOrAlias,
2367
+ 'punctuation': /---|[:[\]{}\-,|>?]|\.\.\./
2368
+ };
2369
+
2370
+ Prism.languages.yml = Prism.languages.yaml;
2371
+
2372
+ }(Prism));
2373
+
2374
+ (function (Prism) {
2375
+
2376
+ var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
2377
+
2378
+ Prism.languages.css = {
2379
+ 'comment': /\/\*[\s\S]*?\*\//,
2380
+ 'atrule': {
2381
+ pattern: RegExp('@[\\w-](?:' + /[^;{\s"']|\s+(?!\s)/.source + '|' + string.source + ')*?' + /(?:;|(?=\s*\{))/.source),
2382
+ inside: {
2383
+ 'rule': /^@[\w-]+/,
2384
+ 'selector-function-argument': {
2385
+ pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
2386
+ lookbehind: true,
2387
+ alias: 'selector'
2388
+ },
2389
+ 'keyword': {
2390
+ pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
2391
+ lookbehind: true
2392
+ }
2393
+ // See rest below
2394
+ }
2395
+ },
2396
+ 'url': {
2397
+ // https://drafts.csswg.org/css-values-3/#urls
2398
+ pattern: RegExp('\\burl\\((?:' + string.source + '|' + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ')\\)', 'i'),
2399
+ greedy: true,
2400
+ inside: {
2401
+ 'function': /^url/i,
2402
+ 'punctuation': /^\(|\)$/,
2403
+ 'string': {
2404
+ pattern: RegExp('^' + string.source + '$'),
2405
+ alias: 'url'
2406
+ }
2407
+ }
2408
+ },
2409
+ 'selector': {
2410
+ pattern: RegExp('(^|[{}\\s])[^{}\\s](?:[^{};"\'\\s]|\\s+(?![\\s{])|' + string.source + ')*(?=\\s*\\{)'),
2411
+ lookbehind: true
2412
+ },
2413
+ 'string': {
2414
+ pattern: string,
2415
+ greedy: true
2416
+ },
2417
+ 'property': {
2418
+ pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
2419
+ lookbehind: true
2420
+ },
2421
+ 'important': /!important\b/i,
2422
+ 'function': {
2423
+ pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
2424
+ lookbehind: true
2425
+ },
2426
+ 'punctuation': /[(){};:,]/
2427
+ };
2428
+
2429
+ Prism.languages.css['atrule'].inside.rest = Prism.languages.css;
2430
+
2431
+ var markup = Prism.languages.markup;
2432
+ if (markup) {
2433
+ markup.tag.addInlined('style', 'css');
2434
+ markup.tag.addAttribute('style', 'css');
2435
+ }
2436
+
2437
+ }(Prism));
2438
+
2439
+ const edsCodeBlockCss = ":host{display:block;font-family:var(--font-family, 'Courier New', monospace)}pre[class*=\"language-\"]{white-space:pre-wrap;word-break:break-word;}.language{font-weight:bold;text-transform:uppercase}pre{margin:0;border-radius:8px;color:var(--purple-200);overflow:auto}code{font-family:'Courier New', monospace}.token.keyword{color:var(--purple-500)}.token.string{color:var(--green-500)}.token.function{color:var(--cyan-500)}.token.comment{color:var(--grey-700)}.relative{position:relative}.bg-stronger{background-color:var(--grey-900)}.rounded-sm{border-radius:8px}.rounded-xs{border-radius:4px}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.p-0{padding:0rem}.p-12{padding:0.75rem}.p-16{padding:1rem}.p-20{padding:1.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.pl-8{padding-left:0.5rem}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}.mb-28{margin-bottom:1.75rem}.pb-16{padding-bottom:1rem}.pb-20{padding-bottom:1.25rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.pb-8{padding-bottom:0.5rem}.mt-16{margin-top:1rem}.mt-2{margin-top:0.125rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.w-20{width:1.25rem}.h-20{height:1.25rem}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}";
2440
+
2441
+ const EdsCodeBlock = class {
2442
+ constructor(hostRef) {
2443
+ registerInstance(this, hostRef);
2444
+ this.code = undefined;
2445
+ this.language = undefined;
2446
+ this.copied = false;
2447
+ }
2448
+ copyToClipboard() {
2449
+ navigator.clipboard.writeText(this.code).then(() => {
2450
+ this.copied = true;
2451
+ setTimeout(() => (this.copied = false), 2000);
2452
+ });
2453
+ }
2454
+ getHighlightedCode() {
2455
+ if (this.language && Prism$1.languages[this.language]) {
2456
+ return Prism$1.highlight(this.code, Prism$1.languages[this.language], this.language);
2457
+ }
2458
+ // eslint-disable-next-line
2459
+ console.warn(`Unsupported or missing language: ${this.language}`);
2460
+ return this.code; // Fallback if language is not provided or unsupported
2461
+ }
2462
+ render() {
2463
+ return (h("div", { key: 'a99c0c8b9546b80bb3f9e21cd53c29540e8b6e06', class: "relative bg-stronger rounded-sm" }, h("div", { key: '5856f9d30bb52f791e0d8bb03a6438bc01247f66', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (h("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (h("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, h("code", { innerHTML: this.getHighlightedCode() }))), h("span", { key: 'dfb0f69dbbd1032ace5afb7fe98d899816f36610', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, h("eds-icon-wrapper", { key: 'b399384638265f9fcc9a824c47fe73c75bcade33', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), h("span", { key: '47c2d00b2cf86b99522dbc438726e0fc57fb6a44', class: "sr-only" }, "Copy Code")), this.language && (h("pre", { key: '038321e9d3d2a38963857ab8b719653f3e8385e3', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, h("code", { key: '72be161dd9781d9bc2f4d9495969175f34c19249', innerHTML: this.getHighlightedCode() })))));
2464
+ }
2465
+ };
2466
+ EdsCodeBlock.style = edsCodeBlockCss;
2467
+
2468
+ export { EdsCodeBlock as eds_code_block };