@supersoniks/concorde 2.0.7 → 3.0.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 (406) hide show
  1. package/build-infos.json +1 -0
  2. package/index.html +44 -0
  3. package/notes de migration.md +21 -0
  4. package/package.json +23 -290
  5. package/scripts/prebuild.mjs +22 -0
  6. package/{components.js → src/components.ts} +5 -2
  7. package/src/concorde-loaded.ts +3 -0
  8. package/src/core/_types/types.ts +55 -0
  9. package/src/core/components/functional/date/date.md +290 -0
  10. package/src/core/components/functional/date/date.ts +206 -0
  11. package/src/core/components/functional/example/example.ts +11 -0
  12. package/src/core/components/functional/fetch/fetch.md +117 -0
  13. package/{core/components/functional/fetch/fetch.js → src/core/components/functional/fetch/fetch.ts} +33 -37
  14. package/src/core/components/functional/if/if.md +16 -0
  15. package/src/core/components/functional/if/if.test.ts +40 -0
  16. package/src/core/components/functional/if/if.ts +23 -0
  17. package/src/core/components/functional/list/list.md +194 -0
  18. package/src/core/components/functional/list/list.ts +236 -0
  19. package/src/core/components/functional/mix/mix.md +41 -0
  20. package/src/core/components/functional/mix/mix.ts +95 -0
  21. package/src/core/components/functional/queue/queue.md +87 -0
  22. package/src/core/components/functional/queue/queue.ts +279 -0
  23. package/src/core/components/functional/router/redirect.ts +44 -0
  24. package/src/core/components/functional/router/router.md +112 -0
  25. package/src/core/components/functional/router/router.ts +108 -0
  26. package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +229 -0
  27. package/{core → src/core}/components/functional/sdui/default-library.json +13 -13
  28. package/src/core/components/functional/sdui/example.json +99 -0
  29. package/src/core/components/functional/sdui/sdui-utils.ts +62 -0
  30. package/src/core/components/functional/sdui/sdui.md +356 -0
  31. package/src/core/components/functional/sdui/sdui.ts +230 -0
  32. package/src/core/components/functional/sdui/types.ts +34 -0
  33. package/src/core/components/functional/sonic-scope/sonic-scope.ts +13 -0
  34. package/src/core/components/functional/states/states.md +87 -0
  35. package/src/core/components/functional/states/states.ts +121 -0
  36. package/src/core/components/functional/submit/submit.md +48 -0
  37. package/src/core/components/functional/submit/submit.ts +265 -0
  38. package/src/core/components/functional/subscriber/subscriber.md +91 -0
  39. package/src/core/components/functional/subscriber/subscriber.ts +28 -0
  40. package/src/core/components/functional/value/value.md +35 -0
  41. package/src/core/components/functional/value/value.ts +18 -0
  42. package/{core/components/ui/_css/scroll.js → src/core/components/ui/_css/scroll.ts} +3 -2
  43. package/{core/components/ui/_css/size.js → src/core/components/ui/_css/size.ts} +5 -2
  44. package/{core/components/ui/_css/type.js → src/core/components/ui/_css/type.ts} +5 -3
  45. package/src/core/components/ui/alert/alert.md +121 -0
  46. package/src/core/components/ui/alert/alert.ts +177 -0
  47. package/src/core/components/ui/badge/badge.md +102 -0
  48. package/{core/components/ui/badge/badge.js → src/core/components/ui/badge/badge.ts} +36 -51
  49. package/src/core/components/ui/button/button.md +184 -0
  50. package/{core/components/ui/button/button.js → src/core/components/ui/button/button.ts} +258 -302
  51. package/src/core/components/ui/captcha/captcha.md +12 -0
  52. package/src/core/components/ui/captcha/captcha.ts +88 -0
  53. package/src/core/components/ui/card/card-footer.ts +19 -0
  54. package/src/core/components/ui/card/card-header-descripton.ts +24 -0
  55. package/{core/components/ui/card/card-header.js → src/core/components/ui/card/card-header.ts} +28 -38
  56. package/src/core/components/ui/card/card-main.ts +24 -0
  57. package/src/core/components/ui/card/card.md +96 -0
  58. package/{core/components/ui/card/card.js → src/core/components/ui/card/card.ts} +23 -34
  59. package/src/core/components/ui/divider/divider.md +35 -0
  60. package/{core/components/ui/divider/divider.js → src/core/components/ui/divider/divider.ts} +35 -65
  61. package/src/core/components/ui/form/checkbox/checkbox.md +96 -0
  62. package/{core/components/ui/form/checkbox/checkbox.js → src/core/components/ui/form/checkbox/checkbox.ts} +79 -98
  63. package/{core/components/ui/form/css/form-control.js → src/core/components/ui/form/css/form-control.ts} +9 -5
  64. package/src/core/components/ui/form/fieldset/fieldset.md +129 -0
  65. package/src/core/components/ui/form/fieldset/fieldset.ts +96 -0
  66. package/src/core/components/ui/form/fieldset/legend-description.ts +23 -0
  67. package/src/core/components/ui/form/fieldset/legend.ts +90 -0
  68. package/src/core/components/ui/form/form-actions/form-actions.md +77 -0
  69. package/src/core/components/ui/form/form-actions/form-actions.ts +32 -0
  70. package/src/core/components/ui/form/form-layout/form-layout.md +43 -0
  71. package/src/core/components/ui/form/form-layout/form-layout.ts +71 -0
  72. package/src/core/components/ui/form/input/input.md +168 -0
  73. package/src/core/components/ui/form/input/input.ts +227 -0
  74. package/src/core/components/ui/form/input/password-helper.ts +68 -0
  75. package/src/core/components/ui/form/input/same-value-helper.ts +48 -0
  76. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +130 -0
  77. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +285 -0
  78. package/src/core/components/ui/form/radio/radio.md +86 -0
  79. package/src/core/components/ui/form/radio/radio.ts +44 -0
  80. package/src/core/components/ui/form/select/select.md +99 -0
  81. package/src/core/components/ui/form/select/select.ts +310 -0
  82. package/src/core/components/ui/form/textarea/textarea.md +66 -0
  83. package/src/core/components/ui/form/textarea/textarea.ts +119 -0
  84. package/src/core/components/ui/group/group.md +75 -0
  85. package/src/core/components/ui/group/group.ts +101 -0
  86. package/src/core/components/ui/icon/icon.md +125 -0
  87. package/src/core/components/ui/icon/icon.stories.ts +100 -0
  88. package/src/core/components/ui/icon/icon.ts +106 -0
  89. package/src/core/components/ui/icon/icons.json +1 -0
  90. package/src/core/components/ui/icon/icons.ts +130 -0
  91. package/src/core/components/ui/icon/svgs/cancel.svg +3 -0
  92. package/src/core/components/ui/icon/svgs/check-circled-outline.svg +4 -0
  93. package/src/core/components/ui/icon/svgs/check.svg +3 -0
  94. package/src/core/components/ui/icon/svgs/emoji-puzzled.svg +1 -0
  95. package/src/core/components/ui/icon/svgs/info-empty.svg +5 -0
  96. package/src/core/components/ui/icon/svgs/loader.svg +1 -0
  97. package/src/core/components/ui/icon/svgs/minus-small.svg +3 -0
  98. package/src/core/components/ui/icon/svgs/more-horiz.svg +5 -0
  99. package/src/core/components/ui/icon/svgs/more-vert.svg +5 -0
  100. package/src/core/components/ui/icon/svgs/nav-arrow-down.svg +3 -0
  101. package/src/core/components/ui/icon/svgs/warning-circled-outline.svg +5 -0
  102. package/src/core/components/ui/image/image.md +107 -0
  103. package/src/core/components/ui/image/image.ts +117 -0
  104. package/src/core/components/ui/link/link.md +43 -0
  105. package/src/core/components/ui/link/link.ts +108 -0
  106. package/src/core/components/ui/loader/loader.md +37 -0
  107. package/src/core/components/ui/loader/loader.stories.ts +25 -0
  108. package/src/core/components/ui/loader/loader.ts +81 -0
  109. package/{core/components/ui/loader/styles/fixed.js → src/core/components/ui/loader/styles/fixed.ts} +2 -1
  110. package/{core/components/ui/loader/styles/inline.js → src/core/components/ui/loader/styles/inline.ts} +3 -2
  111. package/src/core/components/ui/menu/menu-item.ts +30 -0
  112. package/src/core/components/ui/menu/menu.md +288 -0
  113. package/src/core/components/ui/menu/menu.ts +292 -0
  114. package/src/core/components/ui/modal/modal-actions.ts +35 -0
  115. package/src/core/components/ui/modal/modal-close.ts +36 -0
  116. package/src/core/components/ui/modal/modal-content.ts +19 -0
  117. package/src/core/components/ui/modal/modal-subtitle.ts +23 -0
  118. package/src/core/components/ui/modal/modal-title.ts +22 -0
  119. package/src/core/components/ui/modal/modal.md +123 -0
  120. package/src/core/components/ui/modal/modal.stories.ts +140 -0
  121. package/src/core/components/ui/modal/modal.ts +386 -0
  122. package/src/core/components/ui/pop/pop.md +79 -0
  123. package/src/core/components/ui/pop/pop.ts +291 -0
  124. package/src/core/components/ui/progress/progress.md +65 -0
  125. package/{core/components/ui/progress/progress.js → src/core/components/ui/progress/progress.ts} +31 -50
  126. package/src/core/components/ui/table/table-caption.ts +21 -0
  127. package/src/core/components/ui/table/table-tbody.ts +32 -0
  128. package/src/core/components/ui/table/table-td.ts +47 -0
  129. package/src/core/components/ui/table/table-tfoot.ts +20 -0
  130. package/src/core/components/ui/table/table-th.ts +56 -0
  131. package/src/core/components/ui/table/table-thead.ts +18 -0
  132. package/src/core/components/ui/table/table-tr.ts +48 -0
  133. package/src/core/components/ui/table/table.md +467 -0
  134. package/{core/components/ui/table/table.js → src/core/components/ui/table/table.ts} +32 -53
  135. package/{core/components/ui/theme/theme-collection/core-variables.js → src/core/components/ui/theme/theme-collection/core-variables.ts} +3 -2
  136. package/{core/components/ui/theme/theme-collection/dark.js → src/core/components/ui/theme/theme-collection/dark.ts} +5 -3
  137. package/{core/components/ui/theme/theme-collection/light.js → src/core/components/ui/theme/theme-collection/light.ts} +3 -2
  138. package/src/core/components/ui/theme/theme.ts +118 -0
  139. package/src/core/components/ui/toast/message-subscriber.stories.ts +43 -0
  140. package/src/core/components/ui/toast/message-subscriber.ts +37 -0
  141. package/{core/components/ui/toast/toast-item.js → src/core/components/ui/toast/toast-item.ts} +86 -113
  142. package/src/core/components/ui/toast/toast.ts +237 -0
  143. package/src/core/components/ui/toast/types.ts +14 -0
  144. package/src/core/components/ui/tooltip/tooltip.md +37 -0
  145. package/{core/components/ui/tooltip/tooltip.js → src/core/components/ui/tooltip/tooltip.ts} +26 -47
  146. package/{core/components/ui/ui.js → src/core/components/ui/ui.ts} +2 -0
  147. package/src/core/core.ts +22 -0
  148. package/src/core/decorators/Subscriber.ts +187 -0
  149. package/src/core/directives/DataProvider.ts +113 -0
  150. package/src/core/directives/Wording.ts +220 -0
  151. package/src/core/mixins/Fetcher.ts +258 -0
  152. package/src/core/mixins/FormCheckable.ts +287 -0
  153. package/src/core/mixins/FormElement.ts +275 -0
  154. package/src/core/mixins/FormInput.ts +135 -0
  155. package/src/core/mixins/Subscriber.ts +352 -0
  156. package/src/core/mixins/TemplatesContainer.ts +70 -0
  157. package/{core/mixins/mixins.d.ts → src/core/mixins/mixins.ts} +1 -1
  158. package/src/core/utils/Arrays.ts +161 -0
  159. package/src/core/utils/DataBindObserver.ts +286 -0
  160. package/src/core/utils/Electron.ts +15 -0
  161. package/src/core/utils/Format.ts +58 -0
  162. package/src/core/utils/HTML.ts +126 -0
  163. package/src/core/utils/LocationHandler.ts +139 -0
  164. package/src/core/utils/Objects.ts +103 -0
  165. package/src/core/utils/PublisherProxy.ts +786 -0
  166. package/src/core/utils/Utils.ts +12 -0
  167. package/src/core/utils/api.ts +456 -0
  168. package/{core/utils/url-pattern.d.ts → src/core/utils/url-pattern.ts} +1 -0
  169. package/{decorators.js → src/decorators.ts} +6 -2
  170. package/{directives.js → src/directives.ts} +11 -6
  171. package/src/docs/_core-concept/overview.md +57 -0
  172. package/src/docs/_core-concept/subscriber.md +76 -0
  173. package/src/docs/_getting-started/concorde-outside.md +141 -0
  174. package/src/docs/_getting-started/create-a-component.md +137 -0
  175. package/src/docs/_getting-started/pubsub.md +150 -0
  176. package/src/docs/_getting-started/start.md +37 -0
  177. package/src/docs/_getting-started/theming.md +91 -0
  178. package/src/docs/code.ts +281 -0
  179. package/src/docs/docs.ts +6 -0
  180. package/src/docs/example/users.ts +64 -0
  181. package/src/docs/navigation/navigation.ts +101 -0
  182. package/src/docs/prism/index.ts +6 -0
  183. package/src/docs/prism/prism.css +158 -0
  184. package/src/docs/prism/prism.js +1022 -0
  185. package/src/docs/search/docs-search.json +3767 -0
  186. package/src/docs/search/markdown-renderer.ts +40 -0
  187. package/src/docs/search/page.ts +40 -0
  188. package/src/docs/search/search.ts +184 -0
  189. package/src/docs.ts +2 -0
  190. package/src/index.ts +7 -0
  191. package/{mixins.js → src/mixins.ts} +10 -6
  192. package/src/tag-list.json +1 -0
  193. package/src/test-utils/TestUtils.ts +13 -0
  194. package/src/tsconfig.json +113 -0
  195. package/{utils.js → src/utils.ts} +15 -11
  196. package/test-utils/TestUtils.ts +13 -0
  197. package/vite/config.js +136 -0
  198. package/vite.config.mts +87 -0
  199. package/README.md +0 -27
  200. package/cli.js +0 -75
  201. package/components.d.ts +0 -4
  202. package/concorde-core.bundle.js +0 -3427
  203. package/concorde-core.es.js +0 -14372
  204. package/core/_types/types.d.ts +0 -28
  205. package/core/_types/types.js +0 -2
  206. package/core/components/functional/date/date.d.ts +0 -45
  207. package/core/components/functional/date/date.js +0 -243
  208. package/core/components/functional/example/example.d.ts +0 -7
  209. package/core/components/functional/example/example.js +0 -26
  210. package/core/components/functional/fetch/fetch.d.ts +0 -93
  211. package/core/components/functional/functional.js +0 -15
  212. package/core/components/functional/if/if.d.ts +0 -12
  213. package/core/components/functional/if/if.js +0 -38
  214. package/core/components/functional/if/if.test.d.ts +0 -1
  215. package/core/components/functional/if/if.test.js +0 -35
  216. package/core/components/functional/list/list.d.ts +0 -117
  217. package/core/components/functional/list/list.js +0 -214
  218. package/core/components/functional/mix/mix.d.ts +0 -22
  219. package/core/components/functional/mix/mix.js +0 -102
  220. package/core/components/functional/queue/queue.d.ts +0 -67
  221. package/core/components/functional/queue/queue.js +0 -310
  222. package/core/components/functional/router/redirect.d.ts +0 -18
  223. package/core/components/functional/router/redirect.js +0 -53
  224. package/core/components/functional/router/router.d.ts +0 -27
  225. package/core/components/functional/router/router.js +0 -119
  226. package/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +0 -58
  227. package/core/components/functional/sdui/SDUIDescriptorTransformer.js +0 -215
  228. package/core/components/functional/sdui/sdui-utils.d.ts +0 -5
  229. package/core/components/functional/sdui/sdui-utils.js +0 -63
  230. package/core/components/functional/sdui/sdui.d.ts +0 -136
  231. package/core/components/functional/sdui/sdui.js +0 -254
  232. package/core/components/functional/sdui/types.d.ts +0 -37
  233. package/core/components/functional/sdui/types.js +0 -1
  234. package/core/components/functional/sonic-scope/sonic-scope.d.ts +0 -5
  235. package/core/components/functional/sonic-scope/sonic-scope.js +0 -21
  236. package/core/components/functional/states/states.d.ts +0 -29
  237. package/core/components/functional/states/states.js +0 -134
  238. package/core/components/functional/submit/submit.d.ts +0 -30
  239. package/core/components/functional/submit/submit.js +0 -236
  240. package/core/components/functional/subscriber/subscriber.d.ts +0 -12
  241. package/core/components/functional/subscriber/subscriber.js +0 -38
  242. package/core/components/functional/value/value.d.ts +0 -7
  243. package/core/components/functional/value/value.js +0 -27
  244. package/core/components/ui/_css/scroll.d.ts +0 -1
  245. package/core/components/ui/_css/size.d.ts +0 -2
  246. package/core/components/ui/_css/type.d.ts +0 -2
  247. package/core/components/ui/alert/alert.d.ts +0 -34
  248. package/core/components/ui/alert/alert.js +0 -202
  249. package/core/components/ui/badge/badge.d.ts +0 -26
  250. package/core/components/ui/button/button.d.ts +0 -171
  251. package/core/components/ui/captcha/captcha.d.ts +0 -30
  252. package/core/components/ui/captcha/captcha.js +0 -93
  253. package/core/components/ui/card/card-footer.d.ts +0 -4
  254. package/core/components/ui/card/card-footer.js +0 -24
  255. package/core/components/ui/card/card-header-descripton.d.ts +0 -5
  256. package/core/components/ui/card/card-header-descripton.js +0 -32
  257. package/core/components/ui/card/card-header.d.ts +0 -8
  258. package/core/components/ui/card/card-main.d.ts +0 -4
  259. package/core/components/ui/card/card-main.js +0 -28
  260. package/core/components/ui/card/card.d.ts +0 -12
  261. package/core/components/ui/divider/divider.d.ts +0 -15
  262. package/core/components/ui/form/checkbox/checkbox.d.ts +0 -181
  263. package/core/components/ui/form/css/form-control.d.ts +0 -4
  264. package/core/components/ui/form/fieldset/fieldset.d.ts +0 -23
  265. package/core/components/ui/form/fieldset/fieldset.js +0 -118
  266. package/core/components/ui/form/fieldset/legend-description.d.ts +0 -5
  267. package/core/components/ui/form/fieldset/legend-description.js +0 -30
  268. package/core/components/ui/form/fieldset/legend.d.ts +0 -16
  269. package/core/components/ui/form/fieldset/legend.js +0 -112
  270. package/core/components/ui/form/form-actions/form-actions.d.ts +0 -7
  271. package/core/components/ui/form/form-actions/form-actions.js +0 -46
  272. package/core/components/ui/form/form-layout/form-layout.d.ts +0 -12
  273. package/core/components/ui/form/form-layout/form-layout.js +0 -83
  274. package/core/components/ui/form/input/input.d.ts +0 -106
  275. package/core/components/ui/form/input/input.js +0 -268
  276. package/core/components/ui/form/input/password-helper.d.ts +0 -25
  277. package/core/components/ui/form/input/password-helper.js +0 -119
  278. package/core/components/ui/form/input/same-value-helper.d.ts +0 -16
  279. package/core/components/ui/form/input/same-value-helper.js +0 -77
  280. package/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +0 -136
  281. package/core/components/ui/form/input-autocomplete/input-autocomplete.js +0 -296
  282. package/core/components/ui/form/radio/radio.d.ts +0 -12
  283. package/core/components/ui/form/radio/radio.js +0 -50
  284. package/core/components/ui/form/select/select.d.ts +0 -58
  285. package/core/components/ui/form/select/select.js +0 -298
  286. package/core/components/ui/form/textarea/textarea.d.ts +0 -84
  287. package/core/components/ui/form/textarea/textarea.js +0 -150
  288. package/core/components/ui/group/group.d.ts +0 -16
  289. package/core/components/ui/group/group.js +0 -118
  290. package/core/components/ui/icon/icon.d.ts +0 -26
  291. package/core/components/ui/icon/icon.js +0 -113
  292. package/core/components/ui/icon/icons.d.ts +0 -10
  293. package/core/components/ui/icon/icons.js +0 -126
  294. package/core/components/ui/icon/icons.json +0 -1
  295. package/core/components/ui/image/image.d.ts +0 -15
  296. package/core/components/ui/image/image.js +0 -153
  297. package/core/components/ui/link/link.d.ts +0 -29
  298. package/core/components/ui/link/link.js +0 -124
  299. package/core/components/ui/loader/loader.d.ts +0 -23
  300. package/core/components/ui/loader/loader.js +0 -97
  301. package/core/components/ui/loader/styles/fixed.d.ts +0 -1
  302. package/core/components/ui/loader/styles/inline.d.ts +0 -1
  303. package/core/components/ui/menu/menu-item.d.ts +0 -5
  304. package/core/components/ui/menu/menu-item.js +0 -34
  305. package/core/components/ui/menu/menu.d.ts +0 -41
  306. package/core/components/ui/menu/menu.js +0 -313
  307. package/core/components/ui/modal/modal-actions.d.ts +0 -7
  308. package/core/components/ui/modal/modal-actions.js +0 -42
  309. package/core/components/ui/modal/modal-close.d.ts +0 -7
  310. package/core/components/ui/modal/modal-close.js +0 -43
  311. package/core/components/ui/modal/modal-content.d.ts +0 -5
  312. package/core/components/ui/modal/modal-content.js +0 -26
  313. package/core/components/ui/modal/modal-subtitle.d.ts +0 -5
  314. package/core/components/ui/modal/modal-subtitle.js +0 -30
  315. package/core/components/ui/modal/modal-title.d.ts +0 -5
  316. package/core/components/ui/modal/modal-title.js +0 -29
  317. package/core/components/ui/modal/modal.d.ts +0 -58
  318. package/core/components/ui/modal/modal.js +0 -401
  319. package/core/components/ui/pop/pop.d.ts +0 -37
  320. package/core/components/ui/pop/pop.js +0 -299
  321. package/core/components/ui/progress/progress.d.ts +0 -10
  322. package/core/components/ui/table/table-caption.d.ts +0 -5
  323. package/core/components/ui/table/table-caption.js +0 -28
  324. package/core/components/ui/table/table-tbody.d.ts +0 -5
  325. package/core/components/ui/table/table-tbody.js +0 -39
  326. package/core/components/ui/table/table-td.d.ts +0 -12
  327. package/core/components/ui/table/table-td.js +0 -68
  328. package/core/components/ui/table/table-tfoot.d.ts +0 -5
  329. package/core/components/ui/table/table-tfoot.js +0 -27
  330. package/core/components/ui/table/table-th.d.ts +0 -11
  331. package/core/components/ui/table/table-th.js +0 -73
  332. package/core/components/ui/table/table-thead.d.ts +0 -5
  333. package/core/components/ui/table/table-thead.js +0 -25
  334. package/core/components/ui/table/table-tr.d.ts +0 -13
  335. package/core/components/ui/table/table-tr.js +0 -66
  336. package/core/components/ui/table/table.d.ts +0 -17
  337. package/core/components/ui/theme/theme-collection/core-variables.d.ts +0 -1
  338. package/core/components/ui/theme/theme-collection/dark.d.ts +0 -1
  339. package/core/components/ui/theme/theme-collection/light.d.ts +0 -1
  340. package/core/components/ui/theme/theme.d.ts +0 -19
  341. package/core/components/ui/theme/theme.js +0 -124
  342. package/core/components/ui/toast/message-subscriber.d.ts +0 -18
  343. package/core/components/ui/toast/message-subscriber.js +0 -40
  344. package/core/components/ui/toast/toast-item.d.ts +0 -19
  345. package/core/components/ui/toast/toast.d.ts +0 -25
  346. package/core/components/ui/toast/toast.js +0 -226
  347. package/core/components/ui/toast/types.d.ts +0 -11
  348. package/core/components/ui/toast/types.js +0 -1
  349. package/core/components/ui/tooltip/tooltip.d.ts +0 -10
  350. package/core/components/ui/ui.d.ts +0 -32
  351. package/core/core.d.ts +0 -4
  352. package/core/core.js +0 -19
  353. package/core/decorators/Subscriber.d.ts +0 -4
  354. package/core/decorators/Subscriber.js +0 -166
  355. package/core/directives/DataProvider.d.ts +0 -23
  356. package/core/directives/DataProvider.js +0 -102
  357. package/core/directives/Wording.d.ts +0 -42
  358. package/core/directives/Wording.js +0 -202
  359. package/core/mixins/Fetcher.d.ts +0 -90
  360. package/core/mixins/Fetcher.js +0 -242
  361. package/core/mixins/FormCheckable.d.ts +0 -88
  362. package/core/mixins/FormCheckable.js +0 -306
  363. package/core/mixins/FormElement.d.ts +0 -32
  364. package/core/mixins/FormElement.js +0 -272
  365. package/core/mixins/FormInput.d.ts +0 -70
  366. package/core/mixins/FormInput.js +0 -81
  367. package/core/mixins/Subscriber.d.ts +0 -36
  368. package/core/mixins/Subscriber.js +0 -333
  369. package/core/mixins/TemplatesContainer.d.ts +0 -13
  370. package/core/mixins/TemplatesContainer.js +0 -69
  371. package/core/mixins/mixins.js +0 -6
  372. package/core/utils/Arrays.d.ts +0 -97
  373. package/core/utils/Arrays.js +0 -140
  374. package/core/utils/DataBindObserver.d.ts +0 -83
  375. package/core/utils/DataBindObserver.js +0 -264
  376. package/core/utils/Electron.d.ts +0 -7
  377. package/core/utils/Electron.js +0 -11
  378. package/core/utils/Format.d.ts +0 -12
  379. package/core/utils/Format.js +0 -38
  380. package/core/utils/HTML.d.ts +0 -42
  381. package/core/utils/HTML.js +0 -119
  382. package/core/utils/LocationHandler.d.ts +0 -46
  383. package/core/utils/LocationHandler.js +0 -133
  384. package/core/utils/Objects.d.ts +0 -28
  385. package/core/utils/Objects.js +0 -102
  386. package/core/utils/PublisherProxy.d.ts +0 -176
  387. package/core/utils/PublisherProxy.js +0 -709
  388. package/core/utils/Utils.d.ts +0 -4
  389. package/core/utils/Utils.js +0 -12
  390. package/core/utils/api.d.ts +0 -139
  391. package/core/utils/api.js +0 -391
  392. package/core/utils/url-pattern.js +0 -2
  393. package/decorators.d.ts +0 -3
  394. package/directives.d.ts +0 -40
  395. package/img/concorde-logo.svg +0 -1
  396. package/img/concorde.png +0 -0
  397. package/img/concorde_def.png +0 -0
  398. package/mixins.d.ts +0 -181
  399. package/svg/regular/plane.svg +0 -1
  400. package/svg/solid/plane.svg +0 -1
  401. package/test-utils/TestUtils.d.ts +0 -4
  402. package/test-utils/TestUtils.js +0 -12
  403. package/utils.d.ts +0 -20
  404. /package/{core/components/functional/functional.d.ts → src/core/components/functional/functional.ts} +0 -0
  405. /package/{core → src/core}/components/ui/theme/css/tailwind.css +0 -0
  406. /package/{core → src/core}/components/ui/theme/css/tailwind.d.ts +0 -0
@@ -0,0 +1,1022 @@
1
+ /* PrismJS 1.29.0
2
+ https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript&plugins=line-highlight+highlight-keywords+normalize-whitespace+toolbar */
3
+ var _self =
4
+ "undefined" != typeof window
5
+ ? window
6
+ : "undefined" != typeof WorkerGlobalScope && self instanceof WorkerGlobalScope
7
+ ? self
8
+ : {},
9
+ Prism = (function (e) {
10
+ var n = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,
11
+ t = 0,
12
+ r = {},
13
+ a = {
14
+ manual: e.Prism && e.Prism.manual,
15
+ disableWorkerMessageHandler: e.Prism && e.Prism.disableWorkerMessageHandler,
16
+ util: {
17
+ encode: function e(n) {
18
+ return n instanceof i
19
+ ? new i(n.type, e(n.content), n.alias)
20
+ : Array.isArray(n)
21
+ ? n.map(e)
22
+ : n
23
+ .replace(/&/g, "&")
24
+ .replace(/</g, "&lt;")
25
+ .replace(/\u00a0/g, " ");
26
+ },
27
+ type: function (e) {
28
+ return Object.prototype.toString.call(e).slice(8, -1);
29
+ },
30
+ objId: function (e) {
31
+ return e.__id || Object.defineProperty(e, "__id", {value: ++t}), e.__id;
32
+ },
33
+ clone: function e(n, t) {
34
+ var r, i;
35
+ switch (((t = t || {}), a.util.type(n))) {
36
+ case "Object":
37
+ if (((i = a.util.objId(n)), t[i])) return t[i];
38
+ for (var l in ((r = {}), (t[i] = r), n)) n.hasOwnProperty(l) && (r[l] = e(n[l], t));
39
+ return r;
40
+ case "Array":
41
+ return (
42
+ (i = a.util.objId(n)),
43
+ t[i]
44
+ ? t[i]
45
+ : ((r = []),
46
+ (t[i] = r),
47
+ n.forEach(function (n, a) {
48
+ r[a] = e(n, t);
49
+ }),
50
+ r)
51
+ );
52
+ default:
53
+ return n;
54
+ }
55
+ },
56
+ getLanguage: function (e) {
57
+ for (; e; ) {
58
+ var t = n.exec(e.className);
59
+ if (t) return t[1].toLowerCase();
60
+ e = e.parentElement;
61
+ }
62
+ return "none";
63
+ },
64
+ setLanguage: function (e, t) {
65
+ (e.className = e.className.replace(RegExp(n, "gi"), "")), e.classList.add("language-" + t);
66
+ },
67
+ currentScript: function () {
68
+ if ("undefined" == typeof document) return null;
69
+ if ("currentScript" in document) return document.currentScript;
70
+ try {
71
+ throw new Error();
72
+ } catch (r) {
73
+ var e = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack) || [])[1];
74
+ if (e) {
75
+ var n = document.getElementsByTagName("script");
76
+ for (var t in n) if (n[t].src == e) return n[t];
77
+ }
78
+ return null;
79
+ }
80
+ },
81
+ isActive: function (e, n, t) {
82
+ for (var r = "no-" + n; e; ) {
83
+ var a = e.classList;
84
+ if (a.contains(n)) return !0;
85
+ if (a.contains(r)) return !1;
86
+ e = e.parentElement;
87
+ }
88
+ return !!t;
89
+ },
90
+ },
91
+ languages: {
92
+ plain: r,
93
+ plaintext: r,
94
+ text: r,
95
+ txt: r,
96
+ extend: function (e, n) {
97
+ var t = a.util.clone(a.languages[e]);
98
+ for (var r in n) t[r] = n[r];
99
+ return t;
100
+ },
101
+ insertBefore: function (e, n, t, r) {
102
+ var i = (r = r || a.languages)[e],
103
+ l = {};
104
+ for (var o in i)
105
+ if (i.hasOwnProperty(o)) {
106
+ if (o == n) for (var s in t) t.hasOwnProperty(s) && (l[s] = t[s]);
107
+ t.hasOwnProperty(o) || (l[o] = i[o]);
108
+ }
109
+ var u = r[e];
110
+ return (
111
+ (r[e] = l),
112
+ a.languages.DFS(a.languages, function (n, t) {
113
+ t === u && n != e && (this[n] = l);
114
+ }),
115
+ l
116
+ );
117
+ },
118
+ DFS: function e(n, t, r, i) {
119
+ i = i || {};
120
+ var l = a.util.objId;
121
+ for (var o in n)
122
+ if (n.hasOwnProperty(o)) {
123
+ t.call(n, o, n[o], r || o);
124
+ var s = n[o],
125
+ u = a.util.type(s);
126
+ "Object" !== u || i[l(s)]
127
+ ? "Array" !== u || i[l(s)] || ((i[l(s)] = !0), e(s, t, o, i))
128
+ : ((i[l(s)] = !0), e(s, t, null, i));
129
+ }
130
+ },
131
+ },
132
+ plugins: {},
133
+ highlightAll: function (e, n) {
134
+ a.highlightAllUnder(document, e, n);
135
+ },
136
+ highlightAllUnder: function (e, n, t) {
137
+ var r = {
138
+ callback: t,
139
+ container: e,
140
+ selector:
141
+ 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code',
142
+ };
143
+ a.hooks.run("before-highlightall", r),
144
+ (r.elements = Array.prototype.slice.apply(r.container.querySelectorAll(r.selector))),
145
+ a.hooks.run("before-all-elements-highlight", r);
146
+ for (var i, l = 0; (i = r.elements[l++]); ) a.highlightElement(i, !0 === n, r.callback);
147
+ },
148
+ highlightElement: function (n, t, r) {
149
+ var i = a.util.getLanguage(n),
150
+ l = a.languages[i];
151
+ a.util.setLanguage(n, i);
152
+ var o = n.parentElement;
153
+ o && "pre" === o.nodeName.toLowerCase() && a.util.setLanguage(o, i);
154
+ var s = {element: n, language: i, grammar: l, code: n.textContent};
155
+ function u(e) {
156
+ (s.highlightedCode = e),
157
+ a.hooks.run("before-insert", s),
158
+ (s.element.innerHTML = s.highlightedCode),
159
+ a.hooks.run("after-highlight", s),
160
+ a.hooks.run("complete", s),
161
+ r && r.call(s.element);
162
+ }
163
+ if (
164
+ (a.hooks.run("before-sanity-check", s),
165
+ (o = s.element.parentElement) &&
166
+ "pre" === o.nodeName.toLowerCase() &&
167
+ !o.hasAttribute("tabindex") &&
168
+ o.setAttribute("tabindex", "0"),
169
+ !s.code)
170
+ )
171
+ return a.hooks.run("complete", s), void (r && r.call(s.element));
172
+ if ((a.hooks.run("before-highlight", s), s.grammar))
173
+ if (t && e.Worker) {
174
+ var c = new Worker(a.filename);
175
+ (c.onmessage = function (e) {
176
+ u(e.data);
177
+ }),
178
+ c.postMessage(JSON.stringify({language: s.language, code: s.code, immediateClose: !0}));
179
+ } else u(a.highlight(s.code, s.grammar, s.language));
180
+ else u(a.util.encode(s.code));
181
+ },
182
+ highlight: function (e, n, t) {
183
+ var r = {code: e, grammar: n, language: t};
184
+ if ((a.hooks.run("before-tokenize", r), !r.grammar))
185
+ throw new Error('The language "' + r.language + '" has no grammar.');
186
+ return (
187
+ (r.tokens = a.tokenize(r.code, r.grammar)),
188
+ a.hooks.run("after-tokenize", r),
189
+ i.stringify(a.util.encode(r.tokens), r.language)
190
+ );
191
+ },
192
+ tokenize: function (e, n) {
193
+ var t = n.rest;
194
+ if (t) {
195
+ for (var r in t) n[r] = t[r];
196
+ delete n.rest;
197
+ }
198
+ var a = new s();
199
+ return (
200
+ u(a, a.head, e),
201
+ o(e, a, n, a.head, 0),
202
+ (function (e) {
203
+ for (var n = [], t = e.head.next; t !== e.tail; ) n.push(t.value), (t = t.next);
204
+ return n;
205
+ })(a)
206
+ );
207
+ },
208
+ hooks: {
209
+ all: {},
210
+ add: function (e, n) {
211
+ var t = a.hooks.all;
212
+ (t[e] = t[e] || []), t[e].push(n);
213
+ },
214
+ run: function (e, n) {
215
+ var t = a.hooks.all[e];
216
+ if (t && t.length) for (var r, i = 0; (r = t[i++]); ) r(n);
217
+ },
218
+ },
219
+ Token: i,
220
+ };
221
+ function i(e, n, t, r) {
222
+ (this.type = e), (this.content = n), (this.alias = t), (this.length = 0 | (r || "").length);
223
+ }
224
+ function l(e, n, t, r) {
225
+ e.lastIndex = n;
226
+ var a = e.exec(t);
227
+ if (a && r && a[1]) {
228
+ var i = a[1].length;
229
+ (a.index += i), (a[0] = a[0].slice(i));
230
+ }
231
+ return a;
232
+ }
233
+ function o(e, n, t, r, s, g) {
234
+ for (var f in t)
235
+ if (t.hasOwnProperty(f) && t[f]) {
236
+ var h = t[f];
237
+ h = Array.isArray(h) ? h : [h];
238
+ for (var d = 0; d < h.length; ++d) {
239
+ if (g && g.cause == f + "," + d) return;
240
+ var v = h[d],
241
+ p = v.inside,
242
+ m = !!v.lookbehind,
243
+ y = !!v.greedy,
244
+ k = v.alias;
245
+ if (y && !v.pattern.global) {
246
+ var x = v.pattern.toString().match(/[imsuy]*$/)[0];
247
+ v.pattern = RegExp(v.pattern.source, x + "g");
248
+ }
249
+ for (
250
+ var b = v.pattern || v, w = r.next, A = s;
251
+ w !== n.tail && !(g && A >= g.reach);
252
+ A += w.value.length, w = w.next
253
+ ) {
254
+ var E = w.value;
255
+ if (n.length > e.length) return;
256
+ if (!(E instanceof i)) {
257
+ var P,
258
+ L = 1;
259
+ if (y) {
260
+ if (!(P = l(b, A, e, m)) || P.index >= e.length) break;
261
+ var S = P.index,
262
+ O = P.index + P[0].length,
263
+ j = A;
264
+ for (j += w.value.length; S >= j; ) j += (w = w.next).value.length;
265
+ if (((A = j -= w.value.length), w.value instanceof i)) continue;
266
+ for (var C = w; C !== n.tail && (j < O || "string" == typeof C.value); C = C.next)
267
+ L++, (j += C.value.length);
268
+ L--, (E = e.slice(A, j)), (P.index -= A);
269
+ } else if (!(P = l(b, 0, E, m))) continue;
270
+ S = P.index;
271
+ var N = P[0],
272
+ _ = E.slice(0, S),
273
+ M = E.slice(S + N.length),
274
+ W = A + E.length;
275
+ g && W > g.reach && (g.reach = W);
276
+ var z = w.prev;
277
+ if (
278
+ (_ && ((z = u(n, z, _)), (A += _.length)),
279
+ c(n, z, L),
280
+ (w = u(n, z, new i(f, p ? a.tokenize(N, p) : N, k, N))),
281
+ M && u(n, w, M),
282
+ L > 1)
283
+ ) {
284
+ var I = {cause: f + "," + d, reach: W};
285
+ o(e, n, t, w.prev, A, I), g && I.reach > g.reach && (g.reach = I.reach);
286
+ }
287
+ }
288
+ }
289
+ }
290
+ }
291
+ }
292
+ function s() {
293
+ var e = {value: null, prev: null, next: null},
294
+ n = {value: null, prev: e, next: null};
295
+ (e.next = n), (this.head = e), (this.tail = n), (this.length = 0);
296
+ }
297
+ function u(e, n, t) {
298
+ var r = n.next,
299
+ a = {value: t, prev: n, next: r};
300
+ return (n.next = a), (r.prev = a), e.length++, a;
301
+ }
302
+ function c(e, n, t) {
303
+ for (var r = n.next, a = 0; a < t && r !== e.tail; a++) r = r.next;
304
+ (n.next = r), (r.prev = n), (e.length -= a);
305
+ }
306
+ if (
307
+ ((e.Prism = a),
308
+ (i.stringify = function e(n, t) {
309
+ if ("string" == typeof n) return n;
310
+ if (Array.isArray(n)) {
311
+ var r = "";
312
+ return (
313
+ n.forEach(function (n) {
314
+ r += e(n, t);
315
+ }),
316
+ r
317
+ );
318
+ }
319
+ var i = {
320
+ type: n.type,
321
+ content: e(n.content, t),
322
+ tag: "span",
323
+ classes: ["token", n.type],
324
+ attributes: {},
325
+ language: t,
326
+ },
327
+ l = n.alias;
328
+ l && (Array.isArray(l) ? Array.prototype.push.apply(i.classes, l) : i.classes.push(l)), a.hooks.run("wrap", i);
329
+ var o = "";
330
+ for (var s in i.attributes) o += " " + s + '="' + (i.attributes[s] || "").replace(/"/g, "&quot;") + '"';
331
+ return "<" + i.tag + ' class="' + i.classes.join(" ") + '"' + o + ">" + i.content + "</" + i.tag + ">";
332
+ }),
333
+ !e.document)
334
+ )
335
+ return e.addEventListener
336
+ ? (a.disableWorkerMessageHandler ||
337
+ e.addEventListener(
338
+ "message",
339
+ function (n) {
340
+ var t = JSON.parse(n.data),
341
+ r = t.language,
342
+ i = t.code,
343
+ l = t.immediateClose;
344
+ e.postMessage(a.highlight(i, a.languages[r], r)), l && e.close();
345
+ },
346
+ !1
347
+ ),
348
+ a)
349
+ : a;
350
+ var g = a.util.currentScript();
351
+ function f() {
352
+ a.manual || a.highlightAll();
353
+ }
354
+ if ((g && ((a.filename = g.src), g.hasAttribute("data-manual") && (a.manual = !0)), !a.manual)) {
355
+ var h = document.readyState;
356
+ "loading" === h || ("interactive" === h && g && g.defer)
357
+ ? document.addEventListener("DOMContentLoaded", f)
358
+ : window.requestAnimationFrame
359
+ ? window.requestAnimationFrame(f)
360
+ : window.setTimeout(f, 16);
361
+ }
362
+ return a;
363
+ })(_self);
364
+ "undefined" != typeof module && module.exports && (module.exports = Prism),
365
+ "undefined" != typeof global && (global.Prism = Prism);
366
+ (Prism.languages.markup = {
367
+ comment: {pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: !0},
368
+ prolog: {pattern: /<\?[\s\S]+?\?>/, greedy: !0},
369
+ doctype: {
370
+ pattern:
371
+ /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
372
+ greedy: !0,
373
+ inside: {
374
+ "internal-subset": {pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null},
375
+ string: {pattern: /"[^"]*"|'[^']*'/, greedy: !0},
376
+ punctuation: /^<!|>$|[[\]]/,
377
+ "doctype-tag": /^DOCTYPE/i,
378
+ name: /[^\s<>'"]+/,
379
+ },
380
+ },
381
+ cdata: {pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: !0},
382
+ tag: {
383
+ pattern:
384
+ /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
385
+ greedy: !0,
386
+ inside: {
387
+ tag: {pattern: /^<\/?[^\s>\/]+/, inside: {punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/}},
388
+ "special-attr": [],
389
+ "attr-value": {
390
+ pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
391
+ inside: {
392
+ punctuation: [
393
+ {pattern: /^=/, alias: "attr-equals"},
394
+ {pattern: /^(\s*)["']|["']$/, lookbehind: !0},
395
+ ],
396
+ },
397
+ },
398
+ punctuation: /\/?>/,
399
+ "attr-name": {pattern: /[^\s>\/]+/, inside: {namespace: /^[^\s>\/:]+:/}},
400
+ },
401
+ },
402
+ entity: [{pattern: /&[\da-z]{1,8};/i, alias: "named-entity"}, /&#x?[\da-f]{1,8};/i],
403
+ }),
404
+ (Prism.languages.markup.tag.inside["attr-value"].inside.entity = Prism.languages.markup.entity),
405
+ (Prism.languages.markup.doctype.inside["internal-subset"].inside = Prism.languages.markup),
406
+ Prism.hooks.add("wrap", function (a) {
407
+ "entity" === a.type && (a.attributes.title = a.content.replace(/&amp;/, "&"));
408
+ }),
409
+ Object.defineProperty(Prism.languages.markup.tag, "addInlined", {
410
+ value: function (a, e) {
411
+ var s = {};
412
+ (s["language-" + e] = {pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: Prism.languages[e]}),
413
+ (s.cdata = /^<!\[CDATA\[|\]\]>$/i);
414
+ var t = {"included-cdata": {pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: s}};
415
+ t["language-" + e] = {pattern: /[\s\S]+/, inside: Prism.languages[e]};
416
+ var n = {};
417
+ (n[a] = {
418
+ pattern: RegExp(
419
+ "(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[^])*?(?=</__>)".replace(
420
+ /__/g,
421
+ function () {
422
+ return a;
423
+ }
424
+ ),
425
+ "i"
426
+ ),
427
+ lookbehind: !0,
428
+ greedy: !0,
429
+ inside: t,
430
+ }),
431
+ Prism.languages.insertBefore("markup", "cdata", n);
432
+ },
433
+ }),
434
+ Object.defineProperty(Prism.languages.markup.tag, "addAttribute", {
435
+ value: function (a, e) {
436
+ Prism.languages.markup.tag.inside["special-attr"].push({
437
+ pattern: RegExp("(^|[\"'\\s])(?:" + a + ")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))", "i"),
438
+ lookbehind: !0,
439
+ inside: {
440
+ "attr-name": /^[^\s=]+/,
441
+ "attr-value": {
442
+ pattern: /=[\s\S]+/,
443
+ inside: {
444
+ value: {
445
+ pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
446
+ lookbehind: !0,
447
+ alias: [e, "language-" + e],
448
+ inside: Prism.languages[e],
449
+ },
450
+ punctuation: [{pattern: /^=/, alias: "attr-equals"}, /"|'/],
451
+ },
452
+ },
453
+ },
454
+ });
455
+ },
456
+ }),
457
+ (Prism.languages.html = Prism.languages.markup),
458
+ (Prism.languages.mathml = Prism.languages.markup),
459
+ (Prism.languages.svg = Prism.languages.markup),
460
+ (Prism.languages.xml = Prism.languages.extend("markup", {})),
461
+ (Prism.languages.ssml = Prism.languages.xml),
462
+ (Prism.languages.atom = Prism.languages.xml),
463
+ (Prism.languages.rss = Prism.languages.xml);
464
+ !(function (s) {
465
+ var e = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
466
+ (s.languages.css = {
467
+ comment: /\/\*[\s\S]*?\*\//,
468
+ atrule: {
469
+ pattern: RegExp("@[\\w-](?:[^;{\\s\"']|\\s+(?!\\s)|" + e.source + ")*?(?:;|(?=\\s*\\{))"),
470
+ inside: {
471
+ rule: /^@[\w-]+/,
472
+ "selector-function-argument": {
473
+ pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
474
+ lookbehind: !0,
475
+ alias: "selector",
476
+ },
477
+ keyword: {pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, lookbehind: !0},
478
+ },
479
+ },
480
+ url: {
481
+ pattern: RegExp("\\burl\\((?:" + e.source + "|(?:[^\\\\\r\n()\"']|\\\\[^])*)\\)", "i"),
482
+ greedy: !0,
483
+ inside: {
484
+ function: /^url/i,
485
+ punctuation: /^\(|\)$/,
486
+ string: {pattern: RegExp("^" + e.source + "$"), alias: "url"},
487
+ },
488
+ },
489
+ selector: {
490
+ pattern: RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|" + e.source + ")*(?=\\s*\\{)"),
491
+ lookbehind: !0,
492
+ },
493
+ string: {pattern: e, greedy: !0},
494
+ property: {
495
+ pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
496
+ lookbehind: !0,
497
+ },
498
+ important: /!important\b/i,
499
+ function: {pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, lookbehind: !0},
500
+ punctuation: /[(){};:,]/,
501
+ }),
502
+ (s.languages.css.atrule.inside.rest = s.languages.css);
503
+ var t = s.languages.markup;
504
+ t && (t.tag.addInlined("style", "css"), t.tag.addAttribute("style", "css"));
505
+ })(Prism);
506
+ Prism.languages.clike = {
507
+ comment: [
508
+ {pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0, greedy: !0},
509
+ {pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0},
510
+ ],
511
+ string: {pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: !0},
512
+ "class-name": {
513
+ pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
514
+ lookbehind: !0,
515
+ inside: {punctuation: /[.\\]/},
516
+ },
517
+ keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
518
+ boolean: /\b(?:false|true)\b/,
519
+ function: /\b\w+(?=\()/,
520
+ number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
521
+ operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
522
+ punctuation: /[{}[\];(),.:]/,
523
+ };
524
+ (Prism.languages.javascript = Prism.languages.extend("clike", {
525
+ "class-name": [
526
+ Prism.languages.clike["class-name"],
527
+ {
528
+ pattern:
529
+ /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
530
+ lookbehind: !0,
531
+ },
532
+ ],
533
+ keyword: [
534
+ {pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0},
535
+ {
536
+ pattern:
537
+ /(^|[^.]|\.\.\.\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/,
538
+ lookbehind: !0,
539
+ },
540
+ ],
541
+ function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
542
+ number: {
543
+ pattern: RegExp(
544
+ "(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])"
545
+ ),
546
+ lookbehind: !0,
547
+ },
548
+ operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,
549
+ })),
550
+ (Prism.languages.javascript["class-name"][0].pattern =
551
+ /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/),
552
+ Prism.languages.insertBefore("javascript", "keyword", {
553
+ regex: {
554
+ pattern: RegExp(
555
+ "((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s]|\\b(?:return|yield))\\s*)/(?:(?:\\[(?:[^\\]\\\\\r\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\r\n])+/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\r\n]|\\\\.|\\[(?:[^[\\]\\\\\r\n]|\\\\.|\\[(?:[^[\\]\\\\\r\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\r\n])+/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|/\\*(?:[^*]|\\*(?!/))*\\*/)*(?:$|[\r\n,.;:})\\]]|//))"
556
+ ),
557
+ lookbehind: !0,
558
+ greedy: !0,
559
+ inside: {
560
+ "regex-source": {
561
+ pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
562
+ lookbehind: !0,
563
+ alias: "language-regex",
564
+ inside: Prism.languages.regex,
565
+ },
566
+ "regex-delimiter": /^\/|\/$/,
567
+ "regex-flags": /^[a-z]+$/,
568
+ },
569
+ },
570
+ "function-variable": {
571
+ pattern:
572
+ /#?(?!\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*=>))/,
573
+ alias: "function",
574
+ },
575
+ parameter: [
576
+ {
577
+ pattern:
578
+ /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
579
+ lookbehind: !0,
580
+ inside: Prism.languages.javascript,
581
+ },
582
+ {
583
+ pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
584
+ lookbehind: !0,
585
+ inside: Prism.languages.javascript,
586
+ },
587
+ {
588
+ pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
589
+ lookbehind: !0,
590
+ inside: Prism.languages.javascript,
591
+ },
592
+ {
593
+ pattern:
594
+ /((?:\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*\{)/,
595
+ lookbehind: !0,
596
+ inside: Prism.languages.javascript,
597
+ },
598
+ ],
599
+ constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/,
600
+ }),
601
+ Prism.languages.insertBefore("javascript", "string", {
602
+ hashbang: {pattern: /^#!.*/, greedy: !0, alias: "comment"},
603
+ "template-string": {
604
+ pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
605
+ greedy: !0,
606
+ inside: {
607
+ "template-punctuation": {pattern: /^`|`$/, alias: "string"},
608
+ interpolation: {
609
+ pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
610
+ lookbehind: !0,
611
+ inside: {
612
+ "interpolation-punctuation": {pattern: /^\$\{|\}$/, alias: "punctuation"},
613
+ rest: Prism.languages.javascript,
614
+ },
615
+ },
616
+ string: /[\s\S]+/,
617
+ },
618
+ },
619
+ "string-property": {
620
+ pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
621
+ lookbehind: !0,
622
+ greedy: !0,
623
+ alias: "property",
624
+ },
625
+ }),
626
+ Prism.languages.insertBefore("javascript", "operator", {
627
+ "literal-property": {
628
+ pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
629
+ lookbehind: !0,
630
+ alias: "property",
631
+ },
632
+ }),
633
+ Prism.languages.markup &&
634
+ (Prism.languages.markup.tag.addInlined("script", "javascript"),
635
+ Prism.languages.markup.tag.addAttribute(
636
+ "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)",
637
+ "javascript"
638
+ )),
639
+ (Prism.languages.js = Prism.languages.javascript);
640
+ !(function () {
641
+ if ("undefined" != typeof Prism && "undefined" != typeof document && document.querySelector) {
642
+ var e,
643
+ t = "line-numbers",
644
+ i = "linkable-line-numbers",
645
+ n = /\n(?!$)/g,
646
+ r = !0;
647
+ Prism.plugins.lineHighlight = {
648
+ highlightLines: function (o, u, c) {
649
+ var h = (u = "string" == typeof u ? u : o.getAttribute("data-line") || "")
650
+ .replace(/\s+/g, "")
651
+ .split(",")
652
+ .filter(Boolean),
653
+ d = +o.getAttribute("data-line-offset") || 0,
654
+ f = (
655
+ (function () {
656
+ if (void 0 === e) {
657
+ var t = document.createElement("div");
658
+ (t.style.fontSize = "13px"),
659
+ (t.style.lineHeight = "1.5"),
660
+ (t.style.padding = "0"),
661
+ (t.style.border = "0"),
662
+ (t.innerHTML = "&nbsp;<br />&nbsp;"),
663
+ document.body.appendChild(t),
664
+ (e = 38 === t.offsetHeight),
665
+ document.body.removeChild(t);
666
+ }
667
+ return e;
668
+ })()
669
+ ? parseInt
670
+ : parseFloat
671
+ )(getComputedStyle(o).lineHeight),
672
+ p = Prism.util.isActive(o, t),
673
+ g = o.querySelector("code"),
674
+ m = p ? o : g || o,
675
+ v = [],
676
+ y = g.textContent.match(n),
677
+ b = y ? y.length + 1 : 1,
678
+ A =
679
+ g && m != g
680
+ ? (function (e, t) {
681
+ var i = getComputedStyle(e),
682
+ n = getComputedStyle(t);
683
+ function r(e) {
684
+ return +e.substr(0, e.length - 2);
685
+ }
686
+ return t.offsetTop + r(n.borderTopWidth) + r(n.paddingTop) - r(i.paddingTop);
687
+ })(o, g)
688
+ : 0;
689
+ h.forEach(function (e) {
690
+ var t = e.split("-"),
691
+ i = +t[0],
692
+ n = +t[1] || i;
693
+ if (!((n = Math.min(b + d, n)) < i)) {
694
+ var r = o.querySelector('.line-highlight[data-range="' + e + '"]') || document.createElement("div");
695
+ if (
696
+ (v.push(function () {
697
+ r.setAttribute("aria-hidden", "true"),
698
+ r.setAttribute("data-range", e),
699
+ (r.className = (c || "") + " line-highlight");
700
+ }),
701
+ p && Prism.plugins.lineNumbers)
702
+ ) {
703
+ var s = Prism.plugins.lineNumbers.getLine(o, i),
704
+ l = Prism.plugins.lineNumbers.getLine(o, n);
705
+ if (s) {
706
+ var a = s.offsetTop + A + "px";
707
+ v.push(function () {
708
+ r.style.top = a;
709
+ });
710
+ }
711
+ if (l) {
712
+ var u = l.offsetTop - s.offsetTop + l.offsetHeight + "px";
713
+ v.push(function () {
714
+ r.style.height = u;
715
+ });
716
+ }
717
+ } else
718
+ v.push(function () {
719
+ r.setAttribute("data-start", String(i)),
720
+ n > i && r.setAttribute("data-end", String(n)),
721
+ (r.style.top = (i - d - 1) * f + A + "px"),
722
+ (r.textContent = new Array(n - i + 2).join(" \n"));
723
+ });
724
+ v.push(function () {
725
+ r.style.width = o.scrollWidth + "px";
726
+ }),
727
+ v.push(function () {
728
+ m.appendChild(r);
729
+ });
730
+ }
731
+ });
732
+ var P = o.id;
733
+ if (p && Prism.util.isActive(o, i) && P) {
734
+ l(o, i) ||
735
+ v.push(function () {
736
+ o.classList.add(i);
737
+ });
738
+ var E = parseInt(o.getAttribute("data-start") || "1");
739
+ s(".line-numbers-rows > span", o).forEach(function (e, t) {
740
+ var i = t + E;
741
+ e.onclick = function () {
742
+ var e = P + "." + i;
743
+ (r = !1),
744
+ (location.hash = e),
745
+ setTimeout(function () {
746
+ r = !0;
747
+ }, 1);
748
+ };
749
+ });
750
+ }
751
+ return function () {
752
+ v.forEach(a);
753
+ };
754
+ },
755
+ };
756
+ var o = 0;
757
+ Prism.hooks.add("before-sanity-check", function (e) {
758
+ var t = e.element.parentElement;
759
+ if (u(t)) {
760
+ var i = 0;
761
+ s(".line-highlight", t).forEach(function (e) {
762
+ (i += e.textContent.length), e.parentNode.removeChild(e);
763
+ }),
764
+ i && /^(?: \n)+$/.test(e.code.slice(-i)) && (e.code = e.code.slice(0, -i));
765
+ }
766
+ }),
767
+ Prism.hooks.add("complete", function e(i) {
768
+ var n = i.element.parentElement;
769
+ if (u(n)) {
770
+ clearTimeout(o);
771
+ var r = Prism.plugins.lineNumbers,
772
+ s = i.plugins && i.plugins.lineNumbers;
773
+ l(n, t) && r && !s
774
+ ? Prism.hooks.add("line-numbers", e)
775
+ : (Prism.plugins.lineHighlight.highlightLines(n)(), (o = setTimeout(c, 1)));
776
+ }
777
+ }),
778
+ window.addEventListener("hashchange", c),
779
+ window.addEventListener("resize", function () {
780
+ s("pre")
781
+ .filter(u)
782
+ .map(function (e) {
783
+ return Prism.plugins.lineHighlight.highlightLines(e);
784
+ })
785
+ .forEach(a);
786
+ });
787
+ }
788
+ function s(e, t) {
789
+ return Array.prototype.slice.call((t || document).querySelectorAll(e));
790
+ }
791
+ function l(e, t) {
792
+ return e.classList.contains(t);
793
+ }
794
+ function a(e) {
795
+ e();
796
+ }
797
+ function u(e) {
798
+ return !!(e && /pre/i.test(e.nodeName) && (e.hasAttribute("data-line") || (e.id && Prism.util.isActive(e, i))));
799
+ }
800
+ function c() {
801
+ var e = location.hash.slice(1);
802
+ s(".temporary.line-highlight").forEach(function (e) {
803
+ e.parentNode.removeChild(e);
804
+ });
805
+ var t = (e.match(/\.([\d,-]+)$/) || [, ""])[1];
806
+ if (t && !document.getElementById(e)) {
807
+ var i = e.slice(0, e.lastIndexOf(".")),
808
+ n = document.getElementById(i);
809
+ n &&
810
+ (n.hasAttribute("data-line") || n.setAttribute("data-line", ""),
811
+ Prism.plugins.lineHighlight.highlightLines(n, t, "temporary ")(),
812
+ r && document.querySelector(".temporary.line-highlight").scrollIntoView());
813
+ }
814
+ }
815
+ })();
816
+ "undefined" != typeof Prism &&
817
+ Prism.hooks.add("wrap", function (e) {
818
+ "keyword" === e.type && e.classes.push("keyword-" + e.content);
819
+ });
820
+ !(function () {
821
+ if ("undefined" != typeof Prism) {
822
+ var e =
823
+ Object.assign ||
824
+ function (e, t) {
825
+ for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
826
+ return e;
827
+ },
828
+ t = {
829
+ "remove-trailing": "boolean",
830
+ "remove-indent": "boolean",
831
+ "left-trim": "boolean",
832
+ "right-trim": "boolean",
833
+ "break-lines": "number",
834
+ indent: "number",
835
+ "remove-initial-line-feed": "boolean",
836
+ "tabs-to-spaces": "number",
837
+ "spaces-to-tabs": "number",
838
+ };
839
+ (n.prototype = {
840
+ setDefaults: function (t) {
841
+ this.defaults = e(this.defaults, t);
842
+ },
843
+ normalize: function (t, n) {
844
+ for (var r in (n = e(this.defaults, n))) {
845
+ var i = r.replace(/-(\w)/g, function (e, t) {
846
+ return t.toUpperCase();
847
+ });
848
+ "normalize" !== r && "setDefaults" !== i && n[r] && this[i] && (t = this[i].call(this, t, n[r]));
849
+ }
850
+ return t;
851
+ },
852
+ leftTrim: function (e) {
853
+ return e.replace(/^\s+/, "");
854
+ },
855
+ rightTrim: function (e) {
856
+ return e.replace(/\s+$/, "");
857
+ },
858
+ tabsToSpaces: function (e, t) {
859
+ return (t = 0 | t || 4), e.replace(/\t/g, new Array(++t).join(" "));
860
+ },
861
+ spacesToTabs: function (e, t) {
862
+ return (t = 0 | t || 4), e.replace(RegExp(" {" + t + "}", "g"), "\t");
863
+ },
864
+ removeTrailing: function (e) {
865
+ return e.replace(/\s*?$/gm, "");
866
+ },
867
+ removeInitialLineFeed: function (e) {
868
+ return e.replace(/^(?:\r?\n|\r)/, "");
869
+ },
870
+ removeIndent: function (e) {
871
+ var t = e.match(/^[^\S\n\r]*(?=\S)/gm);
872
+ return t && t[0].length
873
+ ? (t.sort(function (e, t) {
874
+ return e.length - t.length;
875
+ }),
876
+ t[0].length ? e.replace(RegExp("^" + t[0], "gm"), "") : e)
877
+ : e;
878
+ },
879
+ indent: function (e, t) {
880
+ return e.replace(/^[^\S\n\r]*(?=\S)/gm, new Array(++t).join("\t") + "$&");
881
+ },
882
+ breakLines: function (e, t) {
883
+ t = !0 === t ? 80 : 0 | t || 80;
884
+ for (var n = e.split("\n"), i = 0; i < n.length; ++i)
885
+ if (!(r(n[i]) <= t)) {
886
+ for (var o = n[i].split(/(\s+)/g), a = 0, l = 0; l < o.length; ++l) {
887
+ var s = r(o[l]);
888
+ (a += s) > t && ((o[l] = "\n" + o[l]), (a = s));
889
+ }
890
+ n[i] = o.join("");
891
+ }
892
+ return n.join("\n");
893
+ },
894
+ }),
895
+ "undefined" != typeof module && module.exports && (module.exports = n),
896
+ (Prism.plugins.NormalizeWhitespace = new n({
897
+ "remove-trailing": !0,
898
+ "remove-indent": !0,
899
+ "left-trim": !0,
900
+ "right-trim": !0,
901
+ })),
902
+ Prism.hooks.add("before-sanity-check", function (e) {
903
+ var n = Prism.plugins.NormalizeWhitespace;
904
+ if (
905
+ (!e.settings || !1 !== e.settings["whitespace-normalization"]) &&
906
+ Prism.util.isActive(e.element, "whitespace-normalization", !0)
907
+ )
908
+ if ((e.element && e.element.parentNode) || !e.code) {
909
+ var r = e.element.parentNode;
910
+ if (e.code && r && "pre" === r.nodeName.toLowerCase()) {
911
+ for (var i in (null == e.settings && (e.settings = {}), t))
912
+ if (Object.hasOwnProperty.call(t, i)) {
913
+ var o = t[i];
914
+ if (r.hasAttribute("data-" + i))
915
+ try {
916
+ var a = JSON.parse(r.getAttribute("data-" + i) || "true");
917
+ typeof a === o && (e.settings[i] = a);
918
+ } catch (e) {}
919
+ }
920
+ for (var l = r.childNodes, s = "", c = "", u = !1, m = 0; m < l.length; ++m) {
921
+ var f = l[m];
922
+ f == e.element
923
+ ? (u = !0)
924
+ : "#text" === f.nodeName && (u ? (c += f.nodeValue) : (s += f.nodeValue), r.removeChild(f), --m);
925
+ }
926
+ if (e.element.children.length && Prism.plugins.KeepMarkup) {
927
+ var d = s + e.element.innerHTML + c;
928
+ (e.element.innerHTML = n.normalize(d, e.settings)), (e.code = e.element.textContent);
929
+ } else (e.code = s + e.code + c), (e.code = n.normalize(e.code, e.settings));
930
+ }
931
+ } else e.code = n.normalize(e.code, e.settings);
932
+ });
933
+ }
934
+ function n(t) {
935
+ this.defaults = e({}, t);
936
+ }
937
+ function r(e) {
938
+ for (var t = 0, n = 0; n < e.length; ++n) e.charCodeAt(n) == "\t".charCodeAt(0) && (t += 3);
939
+ return e.length + t;
940
+ }
941
+ })();
942
+ !(function () {
943
+ if ("undefined" != typeof Prism && "undefined" != typeof document) {
944
+ var e = [],
945
+ t = {},
946
+ n = function () {};
947
+ Prism.plugins.toolbar = {};
948
+ var a = (Prism.plugins.toolbar.registerButton = function (n, a) {
949
+ var r;
950
+ (r =
951
+ "function" == typeof a
952
+ ? a
953
+ : function (e) {
954
+ var t;
955
+ return (
956
+ "function" == typeof a.onClick
957
+ ? (((t = document.createElement("button")).type = "button"),
958
+ t.addEventListener("click", function () {
959
+ a.onClick.call(this, e);
960
+ }))
961
+ : "string" == typeof a.url
962
+ ? ((t = document.createElement("a")).href = a.url)
963
+ : (t = document.createElement("span")),
964
+ a.className && t.classList.add(a.className),
965
+ (t.textContent = a.text),
966
+ t
967
+ );
968
+ }),
969
+ n in t ? console.warn('There is a button with the key "' + n + '" registered already.') : e.push((t[n] = r));
970
+ }),
971
+ r = (Prism.plugins.toolbar.hook = function (a) {
972
+ var r = a.element.parentNode;
973
+ if (r && /pre/i.test(r.nodeName) && !r.parentNode.classList.contains("code-toolbar")) {
974
+ var o = document.createElement("div");
975
+ o.classList.add("code-toolbar"), r.parentNode.insertBefore(o, r), o.appendChild(r);
976
+ var i = document.createElement("div");
977
+ i.classList.add("toolbar");
978
+ var l = e,
979
+ d = (function (e) {
980
+ for (; e; ) {
981
+ var t = e.getAttribute("data-toolbar-order");
982
+ if (null != t) return (t = t.trim()).length ? t.split(/\s*,\s*/g) : [];
983
+ e = e.parentElement;
984
+ }
985
+ })(a.element);
986
+ d &&
987
+ (l = d.map(function (e) {
988
+ return t[e] || n;
989
+ })),
990
+ l.forEach(function (e) {
991
+ var t = e(a);
992
+ if (t) {
993
+ var n = document.createElement("div");
994
+ n.classList.add("toolbar-item"), n.appendChild(t), i.appendChild(n);
995
+ }
996
+ }),
997
+ o.appendChild(i);
998
+ }
999
+ });
1000
+ a("label", function (e) {
1001
+ var t = e.element.parentNode;
1002
+ if (t && /pre/i.test(t.nodeName) && t.hasAttribute("data-label")) {
1003
+ var n,
1004
+ a,
1005
+ r = t.getAttribute("data-label");
1006
+ try {
1007
+ a = document.querySelector("template#" + r);
1008
+ } catch (e) {}
1009
+ return (
1010
+ a
1011
+ ? (n = a.content)
1012
+ : (t.hasAttribute("data-url")
1013
+ ? ((n = document.createElement("a")).href = t.getAttribute("data-url"))
1014
+ : (n = document.createElement("span")),
1015
+ (n.textContent = r)),
1016
+ n
1017
+ );
1018
+ }
1019
+ }),
1020
+ Prism.hooks.add("complete", r);
1021
+ }
1022
+ })();