@salesforcedevs/dx-components 0.16.3 → 0.17.1-review-diff1

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 (611) hide show
  1. package/lwc.config.json +85 -26
  2. package/package.json +34 -19
  3. package/src/assets/icons/brand-sprite/svg/symbols.svg +23 -5
  4. package/src/assets/icons/salesforcebrand-sprite/svg/symbols.svg +909 -107
  5. package/src/assets/icons/utility-sprite/svg/symbols.svg +2 -1
  6. package/src/modules/dx/agenda/agenda.css +97 -0
  7. package/src/modules/dx/agenda/agenda.html +32 -0
  8. package/src/modules/dx/agenda/agenda.ts +26 -0
  9. package/src/modules/dx/alert/alert.css +103 -0
  10. package/src/modules/dx/alert/alert.html +37 -0
  11. package/src/modules/dx/alert/alert.ts +137 -0
  12. package/src/modules/dx/audio/audio.css +276 -0
  13. package/src/modules/dx/audio/audio.html +158 -0
  14. package/src/modules/dx/audio/audio.ts +484 -0
  15. package/src/modules/dx/banner/banner.css +3 -3
  16. package/src/modules/dx/banner/banner.ts +3 -5
  17. package/src/modules/dx/brandThemeProvider/brandThemeProvider.ts +1 -1
  18. package/src/modules/dx/breadcrumbs/breadcrumbs.css +4 -4
  19. package/src/modules/dx/breadcrumbs/breadcrumbs.html +1 -1
  20. package/src/modules/dx/breadcrumbs/breadcrumbs.ts +28 -27
  21. package/src/modules/dx/button/button.css +79 -25
  22. package/src/modules/dx/button/button.html +4 -2
  23. package/src/modules/dx/button/button.ts +41 -14
  24. package/src/modules/dx/buttonToggle/buttonToggle.css +50 -0
  25. package/src/modules/dx/buttonToggle/buttonToggle.html +17 -0
  26. package/src/modules/dx/buttonToggle/buttonToggle.ts +75 -0
  27. package/src/modules/dx/cardBlogPost/cardBlogPost.css +2 -2
  28. package/src/modules/dx/cardBlogPost/cardBlogPost.html +5 -4
  29. package/src/modules/dx/cardBlogPost/cardBlogPost.ts +27 -4
  30. package/src/modules/dx/cardCallout/cardCallout.css +5 -5
  31. package/src/modules/dx/cardCallout/cardCallout.html +1 -1
  32. package/src/modules/dx/cardCallout/cardCallout.ts +14 -10
  33. package/src/modules/dx/cardClickthrough/cardClickthrough.css +105 -0
  34. package/src/modules/dx/cardClickthrough/cardClickthrough.html +42 -0
  35. package/src/modules/dx/cardClickthrough/cardClickthrough.ts +139 -0
  36. package/src/modules/dx/cardContent/cardContent.css +21 -9
  37. package/src/modules/dx/cardContent/cardContent.html +33 -14
  38. package/src/modules/dx/cardContent/cardContent.ts +80 -15
  39. package/src/modules/dx/cardDemo/cardDemo.css +1 -1
  40. package/src/modules/dx/cardDemo/cardDemo.html +1 -1
  41. package/src/modules/dx/cardDemo/cardDemo.ts +1 -1
  42. package/src/modules/dx/cardDocs/cardDocs.css +8 -8
  43. package/src/modules/dx/cardDocs/cardDocs.html +25 -5
  44. package/src/modules/dx/cardDocs/cardDocs.ts +51 -2
  45. package/src/modules/dx/cardEvent/cardEvent.css +31 -17
  46. package/src/modules/dx/cardEvent/cardEvent.html +17 -18
  47. package/src/modules/dx/cardEvent/cardEvent.ts +11 -3
  48. package/src/modules/dx/cardExpanded/cardExpanded.css +60 -0
  49. package/src/modules/dx/cardExpanded/cardExpanded.html +35 -0
  50. package/src/modules/dx/cardExpanded/cardExpanded.ts +63 -0
  51. package/src/modules/dx/cardGrid/cardGrid.css +1 -85
  52. package/src/modules/dx/cardGrid/cardGrid.html +16 -44
  53. package/src/modules/dx/cardGrid/cardGrid.ts +32 -139
  54. package/src/modules/dx/cardGridDocs/cardGridDocs.css +73 -0
  55. package/src/modules/dx/cardGridDocs/cardGridDocs.html +67 -0
  56. package/src/modules/dx/cardGridDocs/cardGridDocs.ts +86 -0
  57. package/src/modules/dx/cardMinimal/cardMinimal.css +31 -0
  58. package/src/modules/dx/cardMinimal/cardMinimal.html +8 -0
  59. package/src/modules/dx/cardMinimal/cardMinimal.ts +3 -0
  60. package/src/modules/dx/cardNews/cardNews.css +34 -15
  61. package/src/modules/dx/cardNews/cardNews.html +8 -1
  62. package/src/modules/dx/cardNews/cardNews.ts +23 -5
  63. package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.css +3 -3
  64. package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.html +2 -1
  65. package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.ts +1 -1
  66. package/src/modules/dx/cardSmall/cardSmall.css +3 -7
  67. package/src/modules/dx/cardSmall/cardSmall.html +2 -2
  68. package/src/modules/dx/cardSmall/cardSmall.ts +2 -2
  69. package/src/modules/dx/cardStep/cardStep.css +128 -0
  70. package/src/modules/dx/cardStep/cardStep.html +31 -0
  71. package/src/modules/dx/cardStep/cardStep.ts +55 -0
  72. package/src/modules/dx/cardStep/mockProps.ts +59 -0
  73. package/src/modules/dx/cardTestimonial/cardTestimonial.css +24 -0
  74. package/src/modules/dx/cardTestimonial/cardTestimonial.html +15 -0
  75. package/src/modules/dx/cardTestimonial/cardTestimonial.ts +18 -0
  76. package/src/modules/dx/cardTitle/cardTitle.css +6 -4
  77. package/src/modules/dx/cardTitle/cardTitle.html +1 -1
  78. package/src/modules/dx/cardTitle/cardTitle.ts +4 -4
  79. package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.css +2 -2
  80. package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.html +2 -2
  81. package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.ts +2 -1
  82. package/src/modules/dx/cardTrial/cardTrial.css +134 -0
  83. package/src/modules/dx/cardTrial/cardTrial.html +207 -0
  84. package/src/modules/dx/cardTrial/cardTrial.ts +147 -0
  85. package/src/modules/dx/cardTrialExpanded/cardTrialExpanded.css +159 -0
  86. package/src/modules/dx/cardTrialExpanded/cardTrialExpanded.html +91 -0
  87. package/src/modules/dx/cardTrialExpanded/cardTrialExpanded.ts +84 -0
  88. package/src/modules/dx/cardVideoPreview/cardVideoPreview.css +2 -2
  89. package/src/modules/dx/cardVideoPreview/cardVideoPreview.html +3 -2
  90. package/src/modules/dx/cardVideoPreview/cardVideoPreview.ts +2 -2
  91. package/src/modules/dx/checkbox/checkbox.css +9 -4
  92. package/src/modules/dx/checkbox/checkbox.ts +27 -2
  93. package/src/modules/dx/checkboxGroup/checkboxGroup.css +1 -1
  94. package/src/modules/dx/checkboxGroup/checkboxGroup.ts +1 -1
  95. package/src/modules/dx/checkboxNative/checkboxNative.css +18 -0
  96. package/src/modules/dx/checkboxNative/checkboxNative.html +14 -0
  97. package/src/modules/dx/checkboxNative/checkboxNative.ts +39 -0
  98. package/src/modules/dx/codeBlock/codeBlock.css +22 -15
  99. package/src/modules/dx/codeBlock/codeBlock.html +3 -3
  100. package/src/modules/dx/codeBlock/codeBlock.ts +149 -61
  101. package/src/modules/dx/codeBlock/customLanguages.js +48 -0
  102. package/src/modules/dx/codeBlock/darkAndLightThemes.css +177 -0
  103. package/src/modules/dx/coveoRecommendations/coveoRecommendations.css +8 -0
  104. package/src/modules/dx/coveoRecommendations/coveoRecommendations.html +27 -0
  105. package/src/modules/dx/coveoRecommendations/coveoRecommendations.ts +171 -0
  106. package/src/modules/dx/darkModeManager/darkModeManager.ts +86 -0
  107. package/src/modules/dx/dropdown/dropdown.css +3 -5
  108. package/src/modules/dx/dropdown/dropdown.html +7 -1
  109. package/src/modules/dx/dropdown/dropdown.ts +18 -9
  110. package/src/modules/dx/dropdownOption/dropdownOption.css +125 -5
  111. package/src/modules/dx/dropdownOption/dropdownOption.html +7 -2
  112. package/src/modules/dx/dropdownOption/dropdownOption.ts +27 -9
  113. package/src/modules/dx/embeddedVideo/embeddedVideo.css +35 -0
  114. package/src/modules/dx/embeddedVideo/embeddedVideo.html +56 -0
  115. package/src/modules/dx/embeddedVideo/embeddedVideo.ts +40 -0
  116. package/src/modules/dx/emptyState/emptyState.css +76 -4
  117. package/src/modules/dx/emptyState/emptyState.html +16 -4
  118. package/src/modules/dx/emptyState/emptyState.ts +57 -7
  119. package/src/modules/dx/errorFallback/errorFallback.css +27 -0
  120. package/src/modules/dx/errorFallback/errorFallback.html +11 -0
  121. package/src/modules/dx/errorFallback/errorFallback.ts +7 -0
  122. package/src/modules/dx/eyebrow/eyebrow.css +44 -0
  123. package/src/modules/dx/eyebrow/eyebrow.html +16 -0
  124. package/src/modules/dx/eyebrow/eyebrow.ts +32 -0
  125. package/src/modules/dx/faq/faq.css +58 -0
  126. package/src/modules/dx/faq/faq.html +36 -0
  127. package/src/modules/dx/faq/faq.ts +16 -0
  128. package/src/modules/dx/feature/feature.css +16 -6
  129. package/src/modules/dx/feature/feature.html +9 -7
  130. package/src/modules/dx/feature/feature.ts +17 -4
  131. package/src/modules/dx/featureFlag/featureFlag.css +3 -0
  132. package/src/modules/dx/featureFlag/featureFlag.html +3 -0
  133. package/src/modules/dx/featureFlag/featureFlag.ts +41 -0
  134. package/src/modules/dx/featuredContentHeader/featuredContentHeader.css +182 -146
  135. package/src/modules/dx/featuredContentHeader/featuredContentHeader.html +123 -87
  136. package/src/modules/dx/featuredContentHeader/featuredContentHeader.ts +179 -30
  137. package/src/modules/dx/featuredContentHeader/svgs.ts +5 -4
  138. package/src/modules/dx/featuresList/featuresList.css +5 -5
  139. package/src/modules/dx/featuresList/featuresList.html +2 -2
  140. package/src/modules/dx/featuresList/featuresList.ts +2 -3
  141. package/src/modules/dx/featuresListHeader/featuresListHeader.css +144 -0
  142. package/src/modules/dx/featuresListHeader/featuresListHeader.html +58 -0
  143. package/src/modules/dx/featuresListHeader/featuresListHeader.ts +103 -0
  144. package/src/modules/dx/filterMenu/filterMenu.css +134 -0
  145. package/src/modules/dx/filterMenu/filterMenu.html +111 -0
  146. package/src/modules/dx/filterMenu/filterMenu.ts +119 -0
  147. package/src/modules/dx/footer/footer.css +72 -41
  148. package/src/modules/dx/footer/footer.html +65 -65
  149. package/src/modules/dx/footer/footer.ts +66 -31
  150. package/src/modules/dx/footer/links.ts +142 -54
  151. package/src/modules/dx/footerOption/footerOption.css +10 -3
  152. package/src/modules/dx/footerOption/footerOption.html +1 -10
  153. package/src/modules/dx/footerOption/footerOption.ts +21 -7
  154. package/src/modules/dx/formattedDateTime/formattedDateTime.ts +22 -14
  155. package/src/modules/dx/formattedRichText/formattedRichText.css +32 -0
  156. package/src/modules/dx/formattedRichText/formattedRichText.html +3 -0
  157. package/src/modules/dx/formattedRichText/formattedRichText.ts +17 -0
  158. package/src/modules/dx/grid/grid.css +7 -2
  159. package/src/modules/dx/grid/grid.html +15 -0
  160. package/src/modules/dx/grid/grid.ts +78 -2
  161. package/src/modules/dx/groupText/groupText.css +5 -9
  162. package/src/modules/dx/groupText/groupText.html +8 -3
  163. package/src/modules/dx/groupText/groupText.ts +21 -14
  164. package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.css +3 -2
  165. package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.ts +5 -5
  166. package/src/modules/dx/headerMobileNavMenuOption/headerMobileNavMenuOption.ts +10 -2
  167. package/src/modules/dx/headerNav/headerNav.css +9 -1
  168. package/src/modules/dx/headerNav/headerNav.html +2 -0
  169. package/src/modules/dx/headerNav/headerNav.ts +10 -6
  170. package/src/modules/dx/helmet/helmet.css +3 -3
  171. package/src/modules/dx/helmet/helmet.html +2 -2
  172. package/src/modules/dx/helmet/helmet.ts +2 -2
  173. package/src/modules/dx/hr/hr.css +10 -10
  174. package/src/modules/dx/hr/hr.ts +7 -1
  175. package/src/modules/dx/icon/icon.css +2 -2
  176. package/src/modules/dx/icon/icon.html +20 -9
  177. package/src/modules/dx/icon/icon.ts +6 -1
  178. package/src/modules/dx/iconBadge/iconBadge.css +13 -1
  179. package/src/modules/dx/iconBadge/iconBadge.html +3 -3
  180. package/src/modules/dx/iconBadge/iconBadge.ts +23 -7
  181. package/src/modules/dx/imageAndLabel/imageAndLabel.css +4 -8
  182. package/src/modules/dx/imageAndLabel/imageAndLabel.html +18 -2
  183. package/src/modules/dx/input/input.css +24 -6
  184. package/src/modules/dx/input/input.html +6 -1
  185. package/src/modules/dx/input/input.ts +76 -10
  186. package/src/modules/dx/interactiveImage/interactiveImage.css +2 -2
  187. package/src/modules/dx/interactiveImage/interactiveImage.html +2 -2
  188. package/src/modules/dx/interactiveImage/interactiveImage.ts +2 -2
  189. package/src/modules/dx/logo/logo.css +2 -3
  190. package/src/modules/dx/logo/logo.html +1 -1
  191. package/src/modules/dx/logo/logo.ts +3 -2
  192. package/src/modules/dx/mainContentHeader/mainContentHeader.css +197 -0
  193. package/src/modules/dx/mainContentHeader/mainContentHeader.html +75 -0
  194. package/src/modules/dx/mainContentHeader/mainContentHeader.ts +98 -0
  195. package/src/modules/dx/metadataBadge/metadataBadge.css +41 -0
  196. package/src/modules/dx/metadataBadge/metadataBadge.html +5 -0
  197. package/src/modules/dx/metadataBadge/metadataBadge.ts +24 -0
  198. package/src/modules/dx/modal/modal.css +7 -0
  199. package/src/modules/dx/modal/modal.html +13 -0
  200. package/src/modules/dx/modal/modal.ts +98 -0
  201. package/src/modules/dx/modalDrawer/modalDrawer.css +41 -0
  202. package/src/modules/dx/modalDrawer/modalDrawer.html +11 -0
  203. package/src/modules/dx/modalDrawer/modalDrawer.ts +33 -0
  204. package/src/modules/dx/pagination/pagination.css +2 -3
  205. package/src/modules/dx/pagination/pagination.ts +45 -8
  206. package/src/modules/dx/podcastHost/podcastHost.css +11 -4
  207. package/src/modules/dx/podcastHost/podcastHost.html +8 -9
  208. package/src/modules/dx/popover/popover.css +31 -6
  209. package/src/modules/dx/popover/popover.html +1 -1
  210. package/src/modules/dx/popover/popover.ts +112 -47
  211. package/src/modules/dx/radioGroup/radioGroup.css +1 -1
  212. package/src/modules/dx/radioGroup/radioGroup.ts +1 -1
  213. package/src/modules/dx/redirectChecker/redirectChecker.html +1 -0
  214. package/src/modules/dx/redirectChecker/redirectChecker.ts +10 -0
  215. package/src/modules/dx/relativeDateTime/relativeDateTime.ts +23 -94
  216. package/src/modules/dx/scrollManager/scrollManager.html +1 -0
  217. package/src/modules/dx/scrollManager/scrollManager.ts +212 -0
  218. package/src/modules/dx/searchResults/coveo.css +2138 -3126
  219. package/src/modules/dx/searchResults/resultsTemplate.js +141 -0
  220. package/src/modules/dx/searchResults/searchResults.css +136 -19
  221. package/src/modules/dx/searchResults/searchResults.html +7 -4
  222. package/src/modules/dx/searchResults/searchResults.ts +378 -37
  223. package/src/modules/dx/section/section.css +40 -7
  224. package/src/modules/dx/section/section.html +37 -7
  225. package/src/modules/dx/section/section.ts +45 -13
  226. package/src/modules/dx/sectionBanner/sectionBanner.css +145 -0
  227. package/src/modules/dx/sectionBanner/sectionBanner.html +41 -0
  228. package/src/modules/dx/sectionBanner/sectionBanner.ts +128 -0
  229. package/src/modules/dx/sectionSignup/sectionSignup.ts +2 -2
  230. package/src/modules/dx/select/select.css +173 -10
  231. package/src/modules/dx/select/select.html +54 -53
  232. package/src/modules/dx/select/select.ts +153 -10
  233. package/src/modules/dx/sidebar/sidebar.css +44 -130
  234. package/src/modules/dx/sidebar/sidebar.html +114 -50
  235. package/src/modules/dx/sidebar/sidebar.ts +159 -116
  236. package/src/modules/dx/sidebarFooterNav/sidebarFooterNav.css +49 -0
  237. package/src/modules/dx/sidebarFooterNav/sidebarFooterNav.html +55 -0
  238. package/src/modules/dx/sidebarFooterNav/sidebarFooterNav.ts +106 -0
  239. package/src/modules/dx/sidebarOld/sidebarOld.css +33 -0
  240. package/src/modules/dx/sidebarOld/sidebarOld.html +111 -0
  241. package/src/modules/dx/sidebarOld/sidebarOld.ts +170 -0
  242. package/src/modules/dx/sidebarSearch/sidebarSearch.css +3 -0
  243. package/src/modules/dx/sidebarSearch/sidebarSearch.html +25 -0
  244. package/src/modules/dx/sidebarSearch/sidebarSearch.ts +493 -0
  245. package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.css +67 -0
  246. package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.html +20 -0
  247. package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.ts +78 -0
  248. package/src/modules/dx/skipNavLink/skipNavLink.css +21 -0
  249. package/src/modules/dx/skipNavLink/skipNavLink.html +3 -0
  250. package/src/modules/dx/skipNavLink/skipNavLink.ts +3 -0
  251. package/src/modules/dx/socials/socials.css +4 -3
  252. package/src/modules/dx/socials/socials.ts +1 -6
  253. package/src/modules/dx/spinner/spinner.css +28 -232
  254. package/src/modules/dx/stepSequence/stepSequence.css +42 -0
  255. package/src/modules/dx/stepSequence/stepSequence.html +10 -0
  256. package/src/modules/dx/stepSequence/stepSequence.ts +334 -0
  257. package/src/modules/dx/stepSequenceStep/stepSequenceStep.html +3 -0
  258. package/src/modules/dx/stepSequenceStep/stepSequenceStep.ts +60 -0
  259. package/src/modules/dx/tab/tab.css +49 -24
  260. package/src/modules/dx/tab/tab.ts +16 -5
  261. package/src/modules/dx/tabPanel/tabPanel.css +20 -0
  262. package/src/modules/dx/tabPanel/tabPanel.html +13 -0
  263. package/src/modules/dx/tabPanel/tabPanel.ts +27 -0
  264. package/src/modules/dx/tabPanelItem/tabPanelItem.css +54 -0
  265. package/src/modules/dx/tabPanelItem/tabPanelItem.html +26 -0
  266. package/src/modules/dx/tabPanelItem/tabPanelItem.ts +45 -0
  267. package/src/modules/dx/tabPanelList/tabPanelList.css +37 -0
  268. package/src/modules/dx/tabPanelList/tabPanelList.html +56 -0
  269. package/src/modules/dx/tabPanelList/tabPanelList.ts +178 -0
  270. package/src/modules/dx/tabPanelList/uniqueId.ts +6 -0
  271. package/src/modules/dx/tabbedCodeBlock/tabbedCodeBlock.css +8 -0
  272. package/src/modules/dx/tabbedCodeBlock/tabbedCodeBlock.html +16 -0
  273. package/src/modules/dx/tabbedCodeBlock/tabbedCodeBlock.ts +44 -0
  274. package/src/modules/dx/tbidAvatarButton/tbidAvatarButton.css +33 -0
  275. package/src/modules/dx/tbidAvatarButton/tbidAvatarButton.html +53 -0
  276. package/src/modules/dx/tbidAvatarButton/tbidAvatarButton.ts +450 -0
  277. package/src/modules/dx/toast/toast.css +78 -0
  278. package/src/modules/dx/toast/toast.html +20 -0
  279. package/src/modules/dx/toast/toast.ts +41 -0
  280. package/src/modules/dx/toc/toc.css +18 -46
  281. package/src/modules/dx/toc/toc.html +5 -11
  282. package/src/modules/dx/toc/toc.ts +20 -31
  283. package/src/modules/dx/tooltip/tooltip.css +1 -0
  284. package/src/modules/dx/topics/topics.css +26 -0
  285. package/src/modules/dx/topics/topics.html +12 -0
  286. package/src/modules/dx/topics/topics.ts +25 -0
  287. package/src/modules/dx/trafficLabeler/trafficLabeler.html +1 -0
  288. package/src/modules/dx/trafficLabeler/trafficLabeler.ts +58 -0
  289. package/src/modules/dx/tree/tree.css +1 -1
  290. package/src/modules/dx/tree/tree.ts +9 -1
  291. package/src/modules/dx/tree/treeHandler.ts +5 -1
  292. package/src/modules/dx/treeItem/treeItem.css +12 -1
  293. package/src/modules/dx/treeItem/treeItem.html +10 -2
  294. package/src/modules/dx/treeItem/treeItem.ts +103 -15
  295. package/src/modules/dx/treeTile/treeTile.css +77 -64
  296. package/src/modules/dx/treeTile/treeTile.html +24 -10
  297. package/src/modules/dx/treeTile/treeTile.ts +31 -6
  298. package/src/modules/dx/typeBadge/typeBadge.css +2 -59
  299. package/src/modules/dx/typeBadge/typeBadge.html +7 -1
  300. package/src/modules/dx/typeBadge/typeBadge.ts +97 -8
  301. package/src/modules/dx/vimeoPlayer/vimeoPlayer.css +1 -0
  302. package/src/modules/dx/vimeoPlayer/vimeoPlayer.html +3 -0
  303. package/src/modules/dx/vimeoPlayer/vimeoPlayer.ts +31 -0
  304. package/src/modules/dxBaseElements/archiveCard/archiveCard.ts +31 -0
  305. package/src/modules/{utils → dxBaseElements}/headerBase/headerBase.ts +37 -13
  306. package/src/modules/dxBaseElements/lightningElementWithState/lightningElementWithState.ts +93 -0
  307. package/src/modules/dxBaseElements/matchMediaElement/matchMediaElement.ts +63 -0
  308. package/src/modules/dxBaseElements/sidebarBase/sidebarBase.ts +176 -0
  309. package/src/modules/dxConstants/brands/brands.ts +18 -0
  310. package/src/modules/dxConstants/colors/colors.ts +14 -0
  311. package/src/modules/dxConstants/contentTypes/contentTypes.ts +72 -0
  312. package/src/modules/{helpers → dxHelpers}/animations/animations.css +1 -1
  313. package/src/modules/dxHelpers/button/button.css +4 -0
  314. package/src/modules/{helpers → dxHelpers}/card/card.css +33 -32
  315. package/src/modules/{helpers → dxHelpers}/code/code.css +5 -13
  316. package/src/modules/{helpers → dxHelpers}/commonHeader/commonHeader.css +13 -11
  317. package/src/modules/dxHelpers/commonSidebar/commonSidebar.css +179 -0
  318. package/src/modules/dxHelpers/commonTreeItem/commonTreeItem.css +44 -0
  319. package/src/modules/{helpers → dxHelpers}/reset/reset.css +6 -13
  320. package/src/modules/dxHelpers/scrollbar/scrollbar.css +31 -0
  321. package/src/modules/{helpers → dxHelpers}/table/table.css +2 -6
  322. package/src/modules/{helpers → dxHelpers}/text/text.css +71 -32
  323. package/src/modules/dxHelpers/typeBadge/typeBadge.css +32 -0
  324. package/src/modules/dxUtils/analytics/analytics.ts +24 -0
  325. package/src/modules/dxUtils/async/async.ts +45 -0
  326. package/src/modules/dxUtils/browser/browser.ts +17 -0
  327. package/src/modules/dxUtils/constants/breakpoints.ts +9 -0
  328. package/src/modules/dxUtils/constants/constants.ts +1 -0
  329. package/src/modules/dxUtils/contentTypes/contentTypes.ts +30 -0
  330. package/src/modules/dxUtils/coveo/coveo.ts +70 -0
  331. package/src/modules/dxUtils/css/css.ts +58 -0
  332. package/src/modules/dxUtils/dates/dates.ts +72 -0
  333. package/src/modules/{utils → dxUtils}/highlight/highlight.ts +3 -2
  334. package/src/modules/dxUtils/language/language.ts +21 -0
  335. package/src/modules/dxUtils/list/list.ts +11 -0
  336. package/src/modules/dxUtils/lwc/lwc.ts +24 -0
  337. package/src/modules/dxUtils/normalizers/normalizers.ts +112 -0
  338. package/src/modules/{utils → dxUtils}/options/options.ts +13 -9
  339. package/src/modules/dxUtils/prismjs/prismjs.ts +4183 -0
  340. package/src/modules/dxUtils/queryCoordinator/queryCoordinator.ts +43 -0
  341. package/src/modules/dxUtils/recentSearches/recentSearches.ts +57 -0
  342. package/src/modules/dxUtils/sanitizeHtml/sanitizeHtml.ts +8 -0
  343. package/src/modules/dxUtils/urlWatcher/urlWatcher.ts +79 -0
  344. package/src/modules/dxUtils/withTypedRefs/withTypedRefs.ts +26 -0
  345. package/src/modules/{utils → dxUtils}/wordpress/wordpress.ts +14 -0
  346. package/LICENSE +0 -12
  347. package/src/assets/svg/card-news-learn-moar.svg +0 -415
  348. package/src/assets/svg/cloud-1.svg +0 -24
  349. package/src/assets/svg/cloud-2.svg +0 -18
  350. package/src/assets/svg/codey.svg +0 -93
  351. package/src/assets/svg/command.svg +0 -9
  352. package/src/assets/svg/control.svg +0 -10
  353. package/src/assets/svg/docs-empty-state-small.svg +0 -72
  354. package/src/assets/svg/docs-empty-state.svg +0 -86
  355. package/src/assets/svg/dsc-home-news-bear.svg +0 -3
  356. package/src/assets/svg/dsc-home-news-community.png +0 -0
  357. package/src/assets/svg/dsc-home-news-goatbear.svg +0 -257
  358. package/src/assets/svg/dsc-home-news-samplegallery.svg +0 -76
  359. package/src/assets/svg/empty-state-assistant.svg +0 -1
  360. package/src/assets/svg/fch-blog-cloud-1.png +0 -0
  361. package/src/assets/svg/fch-blog-cloud-2.png +0 -0
  362. package/src/assets/svg/fch-blog-planet.png +0 -0
  363. package/src/assets/svg/feature-backdrop1.svg +0 -10
  364. package/src/assets/svg/feature-backdrop2.svg +0 -10
  365. package/src/assets/svg/featured-demo-art-blank.svg +0 -76
  366. package/src/assets/svg/featured-demo-art-eBikes.svg +0 -77
  367. package/src/assets/svg/footer-graphic-large.svg +0 -207
  368. package/src/assets/svg/footer-graphic-mountains-small.svg +0 -17
  369. package/src/assets/svg/footer-graphic-mountains.svg +0 -21
  370. package/src/assets/svg/footer-graphic-trees-small.svg +0 -33
  371. package/src/assets/svg/footer-graphic-trees.svg +0 -62
  372. package/src/assets/svg/lake-mountain.svg +0 -79
  373. package/src/assets/svg/podcast-subscription-clouds-small.svg +0 -49
  374. package/src/assets/svg/podcast-subscription-clouds.svg +0 -57
  375. package/src/assets/svg/podcasts-subscription-apple.svg +0 -164
  376. package/src/assets/svg/podcasts-subscription-google.svg +0 -29
  377. package/src/assets/svg/podcasts-subscription-spotify.svg +0 -11
  378. package/src/assets/svg/salesforce-cloud.svg +0 -7
  379. package/src/assets/svg/salesforce-logo-corporate.svg +0 -21
  380. package/src/assets/svg/salesforce-logo.svg +0 -14
  381. package/src/assets/svg/trees.svg +0 -42
  382. package/src/modules/dx/banner/__tests__/banner.test.ts +0 -31
  383. package/src/modules/dx/brandThemeProvider/__tests__/brandThemeProvider.test.ts +0 -49
  384. package/src/modules/dx/brandThemeProvider/brandThemeProvider.stories.ts +0 -321
  385. package/src/modules/dx/breadcrumbs/__tests__/breadcrumbs.test.ts +0 -143
  386. package/src/modules/dx/breadcrumbs/__tests__/mockProps.ts +0 -28
  387. package/src/modules/dx/breadcrumbs/breadcrumbs.stories.ts +0 -39
  388. package/src/modules/dx/button/__tests__/button.test.ts +0 -107
  389. package/src/modules/dx/button/button.stories.ts +0 -150
  390. package/src/modules/dx/cardBlogPost/__tests__/cardBlogPost.test.ts +0 -27
  391. package/src/modules/dx/cardBlogPost/__tests__/mockProps.ts +0 -12
  392. package/src/modules/dx/cardBlogPost/cardBlogPost.stories.ts +0 -164
  393. package/src/modules/dx/cardBlogPostProvider/__tests__/cardBlogPostProvider.test.ts +0 -34
  394. package/src/modules/dx/cardBlogPostProvider/__tests__/mockWordpressPosts.ts +0 -44
  395. package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.css +0 -3
  396. package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.html +0 -16
  397. package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.ts +0 -29
  398. package/src/modules/dx/cardCallout/__tests__/cardCallout.test.ts +0 -23
  399. package/src/modules/dx/cardCallout/__tests__/mockProps.ts +0 -7
  400. package/src/modules/dx/cardCallout/cardCallout.stories.ts +0 -33
  401. package/src/modules/dx/cardContent/__tests__/cardContent.test.ts +0 -112
  402. package/src/modules/dx/cardContent/__tests__/mockProps.ts +0 -13
  403. package/src/modules/dx/cardContent/cardContent.stories.ts +0 -127
  404. package/src/modules/dx/cardDemo/cardDemo.stories.ts +0 -115
  405. package/src/modules/dx/cardDocs/__tests__/cardDocs.test.ts +0 -48
  406. package/src/modules/dx/cardDocs/__tests__/mockProps.ts +0 -9
  407. package/src/modules/dx/cardDocs/cardDocs.stories.ts +0 -299
  408. package/src/modules/dx/cardEvent/__tests__/cardEvent.test.ts +0 -99
  409. package/src/modules/dx/cardEvent/__tests__/mockProps.ts +0 -10
  410. package/src/modules/dx/cardEvent/cardEvent.stories.ts +0 -152
  411. package/src/modules/dx/cardGrid/__tests__/cardMockProps.ts +0 -431
  412. package/src/modules/dx/cardGrid/__tests__/mockProps.ts +0 -15
  413. package/src/modules/dx/cardGrid/cardGrid.stories.ts +0 -111
  414. package/src/modules/dx/cardNews/__tests__/cardNews.test.ts +0 -59
  415. package/src/modules/dx/cardNews/__tests__/mockProps.ts +0 -7
  416. package/src/modules/dx/cardNews/cardNews.stories.ts +0 -115
  417. package/src/modules/dx/cardPodcastEpisode/__tests__/cardPodcastEpisode.test.ts +0 -70
  418. package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.stories.ts +0 -31
  419. package/src/modules/dx/cardPodcastEpisodeProvider/__tests__/cardPodcastEpisodeProvider.test.ts +0 -36
  420. package/src/modules/dx/cardPodcastEpisodeProvider/__tests__/mockWordpressEpisodes.ts +0 -50
  421. package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.css +0 -3
  422. package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.html +0 -12
  423. package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.ts +0 -29
  424. package/src/modules/dx/cardSmall/__tests__/cardSmall.test.ts +0 -70
  425. package/src/modules/dx/cardSmall/__tests__/mockProps.ts +0 -8
  426. package/src/modules/dx/cardSmall/cardSmall.stories.ts +0 -166
  427. package/src/modules/dx/cardTitle/__tests__/cardTitle.test.ts +0 -46
  428. package/src/modules/dx/cardTrailheadModule/__tests__/cardTrailheadModule.test.ts +0 -18
  429. package/src/modules/dx/cardTrailheadModule/__tests__/mockProps.ts +0 -11
  430. package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.stories.ts +0 -122
  431. package/src/modules/dx/cardVideoPreview/__tests__/cardVideoPreview.test.ts +0 -22
  432. package/src/modules/dx/cardVideoPreview/__tests__/mockProps.ts +0 -11
  433. package/src/modules/dx/cardVideoPreview/cardVideoPreview.stories.ts +0 -147
  434. package/src/modules/dx/checkbox/__tests__/checkbox.test.ts +0 -86
  435. package/src/modules/dx/checkbox/__tests__/mockProps.ts +0 -5
  436. package/src/modules/dx/checkbox/checkbox.stories.ts +0 -38
  437. package/src/modules/dx/checkboxGroup/__tests__/checkboxGroup.test.ts +0 -80
  438. package/src/modules/dx/checkboxGroup/__tests__/mockProps.ts +0 -14
  439. package/src/modules/dx/checkboxGroup/checkboxGroup.stories.ts +0 -33
  440. package/src/modules/dx/codeBlock/__tests__/codeBlock.test.ts +0 -242
  441. package/src/modules/dx/codeBlock/__tests__/mockProps.ts +0 -160
  442. package/src/modules/dx/codeBlock/codeBlock.stories.ts +0 -143
  443. package/src/modules/dx/codeBlock/darkTheme.css +0 -88
  444. package/src/modules/dx/codeBlock/lightTheme.css +0 -72
  445. package/src/modules/dx/dropdown/__tests__/dropdown.test.ts +0 -172
  446. package/src/modules/dx/dropdown/__tests__/mockNestedOptions.ts +0 -96
  447. package/src/modules/dx/dropdown/__tests__/mockOptions.ts +0 -10
  448. package/src/modules/dx/dropdown/__tests__/mockProps.ts +0 -6
  449. package/src/modules/dx/dropdown/dropdown.stories.ts +0 -89
  450. package/src/modules/dx/dropdownOption/__tests__/dropdownOption.test.ts +0 -112
  451. package/src/modules/dx/dropdownOption/__tests__/mockProps.ts +0 -20
  452. package/src/modules/dx/emptyState/__tests__/emptyState.test.ts +0 -52
  453. package/src/modules/dx/emptyState/__tests__/mockProps.ts +0 -4
  454. package/src/modules/dx/emptyState/emptyState.stories.ts +0 -45
  455. package/src/modules/dx/feature/__tests__/feature.test.ts +0 -50
  456. package/src/modules/dx/feature/__tests__/mockProps.ts +0 -8
  457. package/src/modules/dx/featureGrid/__tests__/featureGrid.test.ts +0 -21
  458. package/src/modules/dx/featureGrid/featureGrid.stories.ts +0 -120
  459. package/src/modules/dx/featuredContentHeader/__tests__/featuredContentHeader.test.ts +0 -191
  460. package/src/modules/dx/featuredContentHeader/__tests__/mockProps.ts +0 -73
  461. package/src/modules/dx/featuredContentHeader/featuredContentHeader.stories.ts +0 -153
  462. package/src/modules/dx/featuresList/__tests__/featuresList.test.ts +0 -47
  463. package/src/modules/dx/featuresList/__tests__/mockProps.ts +0 -17
  464. package/src/modules/dx/featuresList/featuresList.stories.ts +0 -30
  465. package/src/modules/dx/footer/__tests__/footer.test.ts +0 -147
  466. package/src/modules/dx/footer/__tests__/mockLocales.ts +0 -7
  467. package/src/modules/dx/footer/footer.stories.ts +0 -88
  468. package/src/modules/dx/footerOption/__tests__/footerOption.test.ts +0 -34
  469. package/src/modules/dx/footerOption/__tests__/mockProps.ts +0 -7
  470. package/src/modules/dx/formattedDateTime/__tests__/formattedDateTime.test.ts +0 -25
  471. package/src/modules/dx/formattedDateTime/__tests__/mockProps.ts +0 -13
  472. package/src/modules/dx/formattedDateTime/formattedDateTime.stories.ts +0 -103
  473. package/src/modules/dx/grid/__tests__/grid.test.ts +0 -37
  474. package/src/modules/dx/grid/grid.stories.ts +0 -134
  475. package/src/modules/dx/groupBio/__tests__/groupBio.test.ts +0 -82
  476. package/src/modules/dx/groupBio/__tests__/mockProps.ts +0 -15
  477. package/src/modules/dx/groupBio/groupBio.css +0 -49
  478. package/src/modules/dx/groupBio/groupBio.html +0 -29
  479. package/src/modules/dx/groupBio/groupBio.stories.ts +0 -66
  480. package/src/modules/dx/groupBio/groupBio.ts +0 -41
  481. package/src/modules/dx/groupText/__tests__/groupText.test.ts +0 -73
  482. package/src/modules/dx/groupText/__tests__/mockProps.ts +0 -35
  483. package/src/modules/dx/groupText/groupText.stories.ts +0 -81
  484. package/src/modules/dx/headTags/headTags.html +0 -3
  485. package/src/modules/dx/headTags/headTags.ts +0 -39
  486. package/src/modules/dx/header/__benchmarks__/header.benchmark.js +0 -45
  487. package/src/modules/dx/header/__tests__/header.test.ts +0 -242
  488. package/src/modules/dx/header/__tests__/mockNavArchitects.ts +0 -169
  489. package/src/modules/dx/header/__tests__/mockNavDevelopers.ts +0 -419
  490. package/src/modules/dx/header/__tests__/mockNavs.ts +0 -115
  491. package/src/modules/dx/header/__tests__/mockProps.ts +0 -164
  492. package/src/modules/dx/header/header.css +0 -109
  493. package/src/modules/dx/header/header.html +0 -128
  494. package/src/modules/dx/header/header.stories.ts +0 -172
  495. package/src/modules/dx/header/header.ts +0 -27
  496. package/src/modules/dx/headerMobileNavMenu/__tests__/headerMobileNavMenu.test.ts +0 -123
  497. package/src/modules/dx/headerMobileNavMenuOption/__tests__/headerMobileNavMenuOption.test.ts +0 -38
  498. package/src/modules/dx/headerNav/__tests__/headerNav.test.ts +0 -49
  499. package/src/modules/dx/headerSearch/__tests__/headerSearch.test.ts +0 -198
  500. package/src/modules/dx/headerSearch/__tests__/mockData.ts +0 -11
  501. package/src/modules/dx/headerSearch/__tests__/mockProps.ts +0 -11
  502. package/src/modules/dx/headerSearch/headerSearch.css +0 -62
  503. package/src/modules/dx/headerSearch/headerSearch.html +0 -65
  504. package/src/modules/dx/headerSearch/headerSearch.ts +0 -161
  505. package/src/modules/dx/helmet/__tests__/helmet.test.ts +0 -53
  506. package/src/modules/dx/helmet/helmet.stories.ts +0 -53
  507. package/src/modules/dx/hr/__tests__/hr.test.ts +0 -53
  508. package/src/modules/dx/hr/__tests__/mockProps.ts +0 -16
  509. package/src/modules/dx/hr/hr.stories.ts +0 -50
  510. package/src/modules/dx/icon/__tests__/icon.test.ts +0 -54
  511. package/src/modules/dx/icon/icon.stories.ts +0 -100
  512. package/src/modules/dx/iconBadge/__tests__/iconBadge.test.ts +0 -17
  513. package/src/modules/dx/iconBadge/iconBadge.stories.ts +0 -32
  514. package/src/modules/dx/imageAndLabel/__tests__/imageAndLabel.test.ts +0 -39
  515. package/src/modules/dx/imageAndLabel/__tests__/mockProps.ts +0 -6
  516. package/src/modules/dx/imageAndLabel/imageAndLabel.stories.ts +0 -48
  517. package/src/modules/dx/input/__tests__/input.test.ts +0 -368
  518. package/src/modules/dx/input/input.stories.ts +0 -102
  519. package/src/modules/dx/instrumentation/__tests__/instrumentation.test.ts +0 -86
  520. package/src/modules/dx/instrumentation/instrumentation.ts +0 -116
  521. package/src/modules/dx/interactiveImage/__tests__/interactiveImage.test.ts +0 -86
  522. package/src/modules/dx/interactiveImage/__tests__/mockProps.ts +0 -39
  523. package/src/modules/dx/interactiveImage/interactiveImage.stories.ts +0 -31
  524. package/src/modules/dx/lazy/__tests__/lazy.test.ts +0 -43
  525. package/src/modules/dx/lazy/lazy.html +0 -5
  526. package/src/modules/dx/lazy/lazy.stories.ts +0 -132
  527. package/src/modules/dx/lazy/lazy.ts +0 -170
  528. package/src/modules/dx/newsletterForm/newsletterForm.css +0 -73
  529. package/src/modules/dx/newsletterForm/newsletterForm.html +0 -73
  530. package/src/modules/dx/newsletterForm/newsletterForm.ts +0 -229
  531. package/src/modules/dx/pagination/__tests__/pagination.test.ts +0 -121
  532. package/src/modules/dx/pagination/pagination.stories.ts +0 -88
  533. package/src/modules/dx/podcastHost/__tests__/mockProps.ts +0 -8
  534. package/src/modules/dx/podcastHost/__tests__/podcastHost.test.ts +0 -21
  535. package/src/modules/dx/podcastHost/podcastHost.stories.ts +0 -17
  536. package/src/modules/dx/podcastPlayer/__tests__/podcastPlayer.test.ts +0 -20
  537. package/src/modules/dx/podcastPlayer/podcastPlayer.stories.ts +0 -13
  538. package/src/modules/dx/podcastSubscription/__tests__/podcastSubscription.test.ts +0 -16
  539. package/src/modules/dx/podcastSubscription/podcastSubscription.css +0 -92
  540. package/src/modules/dx/podcastSubscription/podcastSubscription.html +0 -24
  541. package/src/modules/dx/podcastSubscription/podcastSubscription.stories.ts +0 -23
  542. package/src/modules/dx/podcastSubscription/podcastSubscription.ts +0 -58
  543. package/src/modules/dx/popover/__tests__/mockProps.ts +0 -8
  544. package/src/modules/dx/popover/__tests__/popover.test.ts +0 -321
  545. package/src/modules/dx/popover/popover.stories.ts +0 -82
  546. package/src/modules/dx/radioGroup/__tests__/mockProps.ts +0 -12
  547. package/src/modules/dx/radioGroup/__tests__/radioGroup.test.ts +0 -42
  548. package/src/modules/dx/radioGroup/radioGroup.stories.ts +0 -25
  549. package/src/modules/dx/relativeDateTime/__tests__/mockProps.ts +0 -55
  550. package/src/modules/dx/relativeDateTime/__tests__/relativeDateTime.test.ts +0 -52
  551. package/src/modules/dx/relativeDateTime/relativeDateTime.stories.ts +0 -83
  552. package/src/modules/dx/searchResults/searchResults.stories.ts +0 -36
  553. package/src/modules/dx/section/__tests__/section.test.ts +0 -17
  554. package/src/modules/dx/section/section.stories.ts +0 -381
  555. package/src/modules/dx/sectionSignup/__tests__/sectionSignup.test.ts +0 -66
  556. package/src/modules/dx/sectionSignup/sectionSignup.stories.ts +0 -49
  557. package/src/modules/dx/select/select.stories.ts +0 -59
  558. package/src/modules/dx/sidebar/__tests__/mockProps.ts +0 -181
  559. package/src/modules/dx/sidebar/__tests__/sidebar.test.ts +0 -609
  560. package/src/modules/dx/sidebar/sidebar.stories.ts +0 -139
  561. package/src/modules/dx/socials/__tests__/socials.test.ts +0 -124
  562. package/src/modules/dx/socials/socials.stories.ts +0 -24
  563. package/src/modules/dx/spinner/__tests__/spinner.test.ts +0 -37
  564. package/src/modules/dx/spinner/spinner.stories.ts +0 -69
  565. package/src/modules/dx/tab/__tests__/tab.test.ts +0 -129
  566. package/src/modules/dx/tab/tab.stories.ts +0 -57
  567. package/src/modules/dx/toc/__tests__/mockProps.ts +0 -22
  568. package/src/modules/dx/toc/__tests__/toc.test.ts +0 -115
  569. package/src/modules/dx/toc/toc.stories.ts +0 -26
  570. package/src/modules/dx/tooltip/__tests__/tooltip.test.ts +0 -23
  571. package/src/modules/dx/tooltip/tooltip.stories.ts +0 -46
  572. package/src/modules/dx/tree/__tests__/mockProps.ts +0 -215
  573. package/src/modules/dx/tree/__tests__/tree.test.ts +0 -357
  574. package/src/modules/dx/tree/__tests__/treeHandler.test.ts +0 -194
  575. package/src/modules/dx/tree/tree.stories.ts +0 -65
  576. package/src/modules/dx/treeItem/__tests__/mockProps.ts +0 -46
  577. package/src/modules/dx/treeItem/__tests__/treeItem.test.ts +0 -400
  578. package/src/modules/dx/treeTile/__tests__/mockProps.ts +0 -16
  579. package/src/modules/dx/treeTile/__tests__/treeTile.test.ts +0 -179
  580. package/src/modules/dx/typeBadge/__tests__/typeBadge.test.ts +0 -63
  581. package/src/modules/dx/typeBadge/typeBadge.stories.ts +0 -79
  582. package/src/modules/dx/typeBadgeGroup/__tests__/mockProps.ts +0 -11
  583. package/src/modules/dx/typeBadgeGroup/__tests__/typeBadgeGroup.test.ts +0 -76
  584. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.css +0 -12
  585. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.html +0 -11
  586. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.stories.ts +0 -19
  587. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.ts +0 -18
  588. package/src/modules/helpers/button/button.css +0 -4
  589. package/src/modules/helpers/slds/slds.css +0 -191
  590. package/src/modules/tests/buttonTest/buttonTest.html +0 -3
  591. package/src/modules/tests/buttonTest/buttonTest.ts +0 -3
  592. package/src/modules/tests/codeBlockTest/codeBlockTest.js +0 -4
  593. package/src/modules/tests/featureGridTest/featureGridTest.html +0 -7
  594. package/src/modules/tests/featureGridTest/featureGridTest.ts +0 -5
  595. package/src/modules/tests/instrumentationTest/instrumentationTest.html +0 -4
  596. package/src/modules/tests/instrumentationTest/instrumentationTest.ts +0 -8
  597. package/src/modules/tests/popoverTest/popoverTest.html +0 -6
  598. package/src/modules/tests/popoverTest/popoverTest.ts +0 -5
  599. package/src/modules/utils/css/css.ts +0 -2
  600. package/src/modules/utils/jest/jest.ts +0 -23
  601. package/src/modules/utils/normalizers/normalizers.ts +0 -91
  602. package/src/modules/utils/prismjs/prismjs.ts +0 -3225
  603. package/src/modules/utils/storybook/storybook.ts +0 -33
  604. package/src/modules/utils/tests/tests.ts +0 -31
  605. package/src/modules/utils/wordpress/__tests__/wordpress.test.ts +0 -15
  606. /package/src/modules/dx/{instrumentation/instrumentation.html → darkModeManager/darkModeManager.html} +0 -0
  607. /package/src/modules/{utils → dxUtils}/devices/devices.ts +0 -0
  608. /package/src/modules/{utils → dxUtils}/prismjs/prismjs.html +0 -0
  609. /package/src/modules/{utils → dxUtils}/regexps/regexps.ts +0 -0
  610. /package/src/modules/{utils → dxUtils}/seo/seo.ts +0 -0
  611. /package/src/modules/{utils → dxUtils}/slot/slot.ts +0 -0
@@ -1,3225 +0,0 @@
1
- /* eslint-disable */
2
- var commonjsGlobal =
3
- typeof globalThis !== "undefined"
4
- ? globalThis
5
- : typeof window !== "undefined"
6
- ? window
7
- : typeof global !== "undefined"
8
- ? global
9
- : typeof self !== "undefined"
10
- ? self
11
- : {};
12
-
13
- function createCommonjsModule(fn, basedir, module) {
14
- return (
15
- (module = {
16
- path: basedir,
17
- exports: {},
18
- require: function (path, base) {
19
- return commonjsRequire(
20
- path,
21
- base === undefined || base === null ? module.path : base
22
- );
23
- }
24
- }),
25
- fn(module, module.exports),
26
- module.exports
27
- );
28
- }
29
-
30
- function commonjsRequire() {
31
- throw new Error(
32
- "Dynamic requires are not currently supported by @rollup/plugin-commonjs"
33
- );
34
- }
35
- /* eslint-disable */
36
- var prism = createCommonjsModule(function (module) {
37
- /* PrismJS 1.23.0
38
- https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+apex+aspnet+basic+c+csharp+cpp+css-extras+java+javadoc+javadoclike+jsdoc+js-extras+json+json5+jsonp+jsstacktrace+markdown+markup-templating+php+phpdoc+php-extras+plsql+regex+sql+typescript+typoscript+uri+vbnet&plugins=line-numbers+unescaped-markup+match-braces */
39
- var _self =
40
- "undefined" != typeof window
41
- ? window
42
- : "undefined" != typeof WorkerGlobalScope &&
43
- self instanceof WorkerGlobalScope
44
- ? self
45
- : {},
46
- Prism = (function (u) {
47
- var c = /\blang(?:uage)?-([\w-]+)\b/i,
48
- n = 0,
49
- e = {},
50
- M = {
51
- manual: u.Prism && u.Prism.manual,
52
- disableWorkerMessageHandler:
53
- u.Prism && u.Prism.disableWorkerMessageHandler,
54
- util: {
55
- encode: function e(n) {
56
- return n instanceof W
57
- ? new W(n.type, e(n.content), n.alias)
58
- : Array.isArray(n)
59
- ? n.map(e)
60
- : n
61
- .replace(/&/g, "&")
62
- .replace(/</g, "&lt;")
63
- .replace(/\u00a0/g, " ");
64
- },
65
- type: function (e) {
66
- return Object.prototype.toString
67
- .call(e)
68
- .slice(8, -1);
69
- },
70
- objId: function (e) {
71
- return (
72
- e.__id ||
73
- Object.defineProperty(e, "__id", {
74
- value: ++n
75
- }),
76
- e.__id
77
- );
78
- },
79
- clone: function t(e, r) {
80
- var a, n;
81
- switch (((r = r || {}), M.util.type(e))) {
82
- case "Object":
83
- if (((n = M.util.objId(e)), r[n]))
84
- return r[n];
85
- for (var i in ((a = {}), (r[n] = a), e))
86
- e.hasOwnProperty(i) &&
87
- (a[i] = t(e[i], r));
88
- return a;
89
- case "Array":
90
- return (
91
- (n = M.util.objId(e)),
92
- r[n]
93
- ? r[n]
94
- : ((a = []),
95
- (r[n] = a),
96
- e.forEach(function (e, n) {
97
- a[n] = t(e, r);
98
- }),
99
- a)
100
- );
101
- default:
102
- return e;
103
- }
104
- },
105
- getLanguage: function (e) {
106
- for (; e && !c.test(e.className); )
107
- e = e.parentElement;
108
- return e
109
- ? (e.className.match(c) || [
110
- ,
111
- "none"
112
- ])[1].toLowerCase()
113
- : "none";
114
- },
115
- currentScript: function () {
116
- if ("undefined" == typeof document) return null;
117
- if ("currentScript" in document)
118
- return document.currentScript;
119
- try {
120
- throw new Error();
121
- } catch (e) {
122
- var n = (/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(
123
- e.stack
124
- ) || [])[1];
125
- if (n) {
126
- var t = document.getElementsByTagName(
127
- "script"
128
- );
129
- for (var r in t)
130
- if (t[r].src == n) return t[r];
131
- }
132
- return null;
133
- }
134
- },
135
- isActive: function (e, n, t) {
136
- for (var r = "no-" + n; e; ) {
137
- var a = e.classList;
138
- if (a.contains(n)) return !0;
139
- if (a.contains(r)) return !1;
140
- e = e.parentElement;
141
- }
142
- return !!t;
143
- }
144
- },
145
- languages: {
146
- plain: e,
147
- plaintext: e,
148
- text: e,
149
- txt: e,
150
- extend: function (e, n) {
151
- var t = M.util.clone(M.languages[e]);
152
- for (var r in n) t[r] = n[r];
153
- return t;
154
- },
155
- insertBefore: function (t, e, n, r) {
156
- var a = (r = r || M.languages)[t],
157
- i = {};
158
- for (var l in a)
159
- if (a.hasOwnProperty(l)) {
160
- if (l == e)
161
- for (var o in n)
162
- n.hasOwnProperty(o) &&
163
- (i[o] = n[o]);
164
- n.hasOwnProperty(l) || (i[l] = a[l]);
165
- }
166
- var s = r[t];
167
- return (
168
- (r[t] = i),
169
- M.languages.DFS(M.languages, function (e, n) {
170
- n === s && e != t && (this[e] = i);
171
- }),
172
- i
173
- );
174
- },
175
- DFS: function e(n, t, r, a) {
176
- a = a || {};
177
- var i = M.util.objId;
178
- for (var l in n)
179
- if (n.hasOwnProperty(l)) {
180
- t.call(n, l, n[l], r || l);
181
- var o = n[l],
182
- s = M.util.type(o);
183
- "Object" !== s || a[i(o)]
184
- ? "Array" !== s ||
185
- a[i(o)] ||
186
- ((a[i(o)] = !0), e(o, t, l, a))
187
- : ((a[i(o)] = !0), e(o, t, null, a));
188
- }
189
- }
190
- },
191
- plugins: {},
192
- highlightAll: function (e, n) {
193
- M.highlightAllUnder(document, e, n);
194
- },
195
- highlightAllUnder: function (e, n, t) {
196
- var r = {
197
- callback: t,
198
- container: e,
199
- selector:
200
- 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
201
- };
202
- M.hooks.run("before-highlightall", r),
203
- (r.elements = Array.prototype.slice.apply(
204
- r.container.querySelectorAll(r.selector)
205
- )),
206
- M.hooks.run("before-all-elements-highlight", r);
207
- for (var a, i = 0; (a = r.elements[i++]); )
208
- M.highlightElement(a, !0 === n, r.callback);
209
- },
210
- highlightElement: function (e, n, t) {
211
- var r = M.util.getLanguage(e),
212
- a = M.languages[r];
213
- e.className =
214
- e.className.replace(c, "").replace(/\s+/g, " ") +
215
- " language-" +
216
- r;
217
- var i = e.parentElement;
218
- i &&
219
- "pre" === i.nodeName.toLowerCase() &&
220
- (i.className =
221
- i.className
222
- .replace(c, "")
223
- .replace(/\s+/g, " ") +
224
- " language-" +
225
- r);
226
- var l = {
227
- element: e,
228
- language: r,
229
- grammar: a,
230
- code: e.textContent
231
- };
232
- function o(e) {
233
- (l.highlightedCode = e),
234
- M.hooks.run("before-insert", l),
235
- (l.element.innerHTML = l.highlightedCode),
236
- M.hooks.run("after-highlight", l),
237
- M.hooks.run("complete", l),
238
- t && t.call(l.element);
239
- }
240
- if (
241
- (M.hooks.run("before-sanity-check", l),
242
- (i = l.element.parentElement) &&
243
- "pre" === i.nodeName.toLowerCase() &&
244
- !i.hasAttribute("tabindex") &&
245
- i.setAttribute("tabindex", "0"),
246
- !l.code)
247
- )
248
- return (
249
- M.hooks.run("complete", l),
250
- void (t && t.call(l.element))
251
- );
252
- if ((M.hooks.run("before-highlight", l), l.grammar))
253
- if (n && u.Worker) {
254
- var s = new Worker(M.filename);
255
- (s.onmessage = function (e) {
256
- o(e.data);
257
- }),
258
- s.postMessage(
259
- JSON.stringify({
260
- language: l.language,
261
- code: l.code,
262
- immediateClose: !0
263
- })
264
- );
265
- } else
266
- o(M.highlight(l.code, l.grammar, l.language));
267
- else o(M.util.encode(l.code));
268
- },
269
- highlight: function (e, n, t) {
270
- var r = { code: e, grammar: n, language: t };
271
- return (
272
- M.hooks.run("before-tokenize", r),
273
- (r.tokens = M.tokenize(r.code, r.grammar)),
274
- M.hooks.run("after-tokenize", r),
275
- W.stringify(M.util.encode(r.tokens), r.language)
276
- );
277
- },
278
- tokenize: function (e, n) {
279
- var t = n.rest;
280
- if (t) {
281
- for (var r in t) n[r] = t[r];
282
- delete n.rest;
283
- }
284
- var a = new i();
285
- return (
286
- I(a, a.head, e),
287
- (function e(n, t, r, a, i, l) {
288
- for (var o in r)
289
- if (r.hasOwnProperty(o) && r[o]) {
290
- var s = r[o];
291
- s = Array.isArray(s) ? s : [s];
292
- for (var u = 0; u < s.length; ++u) {
293
- if (l && l.cause == o + "," + u)
294
- return;
295
- var c = s[u],
296
- g = c.inside,
297
- f = !!c.lookbehind,
298
- h = !!c.greedy,
299
- d = c.alias;
300
- if (h && !c.pattern.global) {
301
- var p = c.pattern
302
- .toString()
303
- .match(/[imsuy]*$/)[0];
304
- c.pattern = RegExp(
305
- c.pattern.source,
306
- p + "g"
307
- );
308
- }
309
- for (
310
- var v = c.pattern || c,
311
- m = a.next,
312
- y = i;
313
- m !== t.tail &&
314
- !(l && y >= l.reach);
315
- y += m.value.length, m = m.next
316
- ) {
317
- var b = m.value;
318
- if (t.length > n.length) return;
319
- if (!(b instanceof W)) {
320
- var k,
321
- x = 1;
322
- if (h) {
323
- if (
324
- !(k = z(v, y, n, f))
325
- )
326
- break;
327
- var w = k.index,
328
- A =
329
- k.index +
330
- k[0].length,
331
- P = y;
332
- for (
333
- P += m.value.length;
334
- P <= w;
335
-
336
- )
337
- (m = m.next),
338
- (P +=
339
- m.value
340
- .length);
341
- if (
342
- ((P -=
343
- m.value.length),
344
- (y = P),
345
- m.value instanceof
346
- W)
347
- )
348
- continue;
349
- for (
350
- var E = m;
351
- E !== t.tail &&
352
- (P < A ||
353
- "string" ==
354
- typeof E.value);
355
- E = E.next
356
- )
357
- x++,
358
- (P +=
359
- E.value
360
- .length);
361
- x--,
362
- (b = n.slice(y, P)),
363
- (k.index -= y);
364
- } else if (
365
- !(k = z(v, 0, b, f))
366
- )
367
- continue;
368
- var w = k.index,
369
- S = k[0],
370
- O = b.slice(0, w),
371
- L = b.slice(
372
- w + S.length
373
- ),
374
- N = y + b.length;
375
- l &&
376
- N > l.reach &&
377
- (l.reach = N);
378
- var j = m.prev;
379
- O &&
380
- ((j = I(t, j, O)),
381
- (y += O.length)),
382
- q(t, j, x);
383
- var C = new W(
384
- o,
385
- g
386
- ? M.tokenize(S, g)
387
- : S,
388
- d,
389
- S
390
- );
391
- if (
392
- ((m = I(t, j, C)),
393
- L && I(t, m, L),
394
- 1 < x)
395
- ) {
396
- var _ = {
397
- cause: o + "," + u,
398
- reach: N
399
- };
400
- e(
401
- n,
402
- t,
403
- r,
404
- m.prev,
405
- y,
406
- _
407
- ),
408
- l &&
409
- _.reach >
410
- l.reach &&
411
- (l.reach =
412
- _.reach);
413
- }
414
- }
415
- }
416
- }
417
- }
418
- })(e, a, n, a.head, 0),
419
- (function (e) {
420
- var n = [],
421
- t = e.head.next;
422
- for (; t !== e.tail; )
423
- n.push(t.value), (t = t.next);
424
- return n;
425
- })(a)
426
- );
427
- },
428
- hooks: {
429
- all: {},
430
- add: function (e, n) {
431
- var t = M.hooks.all;
432
- (t[e] = t[e] || []), t[e].push(n);
433
- },
434
- run: function (e, n) {
435
- var t = M.hooks.all[e];
436
- if (t && t.length)
437
- for (var r, a = 0; (r = t[a++]); ) r(n);
438
- }
439
- },
440
- Token: W
441
- };
442
- function W(e, n, t, r) {
443
- (this.type = e),
444
- (this.content = n),
445
- (this.alias = t),
446
- (this.length = 0 | (r || "").length);
447
- }
448
- function z(e, n, t, r) {
449
- e.lastIndex = n;
450
- var a = e.exec(t);
451
- if (a && r && a[1]) {
452
- var i = a[1].length;
453
- (a.index += i), (a[0] = a[0].slice(i));
454
- }
455
- return a;
456
- }
457
- function i() {
458
- var e = { value: null, prev: null, next: null },
459
- n = { value: null, prev: e, next: null };
460
- (e.next = n),
461
- (this.head = e),
462
- (this.tail = n),
463
- (this.length = 0);
464
- }
465
- function I(e, n, t) {
466
- var r = n.next,
467
- a = { value: t, prev: n, next: r };
468
- return (n.next = a), (r.prev = a), e.length++, a;
469
- }
470
- function q(e, n, t) {
471
- for (var r = n.next, a = 0; a < t && r !== e.tail; a++)
472
- r = r.next;
473
- ((n.next = r).prev = n), (e.length -= a);
474
- }
475
- if (
476
- ((u.Prism = M),
477
- (W.stringify = function n(e, t) {
478
- if ("string" == typeof e) return e;
479
- if (Array.isArray(e)) {
480
- var r = "";
481
- return (
482
- e.forEach(function (e) {
483
- r += n(e, t);
484
- }),
485
- r
486
- );
487
- }
488
- var a = {
489
- type: e.type,
490
- content: n(e.content, t),
491
- tag: "span",
492
- classes: ["token", e.type],
493
- attributes: {},
494
- language: t
495
- },
496
- i = e.alias;
497
- i &&
498
- (Array.isArray(i)
499
- ? Array.prototype.push.apply(a.classes, i)
500
- : a.classes.push(i)),
501
- M.hooks.run("wrap", a);
502
- var l = "";
503
- for (var o in a.attributes)
504
- l +=
505
- " " +
506
- o +
507
- '="' +
508
- (a.attributes[o] || "").replace(/"/g, "&quot;") +
509
- '"';
510
- return (
511
- "<" +
512
- a.tag +
513
- ' class="' +
514
- a.classes.join(" ") +
515
- '"' +
516
- l +
517
- ">" +
518
- a.content +
519
- "</" +
520
- a.tag +
521
- ">"
522
- );
523
- }),
524
- !u.document)
525
- )
526
- return (
527
- u.addEventListener &&
528
- (M.disableWorkerMessageHandler ||
529
- u.addEventListener(
530
- "message",
531
- function (e) {
532
- var n = JSON.parse(e.data),
533
- t = n.language,
534
- r = n.code,
535
- a = n.immediateClose;
536
- u.postMessage(
537
- M.highlight(r, M.languages[t], t)
538
- ),
539
- a && u.close();
540
- },
541
- !1
542
- )),
543
- M
544
- );
545
- var t = M.util.currentScript();
546
- function r() {
547
- M.manual || M.highlightAll();
548
- }
549
- if (
550
- (t &&
551
- ((M.filename = t.src),
552
- t.hasAttribute("data-manual") && (M.manual = !0)),
553
- !M.manual)
554
- ) {
555
- var a = document.readyState;
556
- "loading" === a || ("interactive" === a && t && t.defer)
557
- ? document.addEventListener("DOMContentLoaded", r)
558
- : window.requestAnimationFrame
559
- ? window.requestAnimationFrame(r)
560
- : window.setTimeout(r, 16);
561
- }
562
- return M;
563
- })(_self);
564
- "undefined" != typeof module && module.exports && (module.exports = Prism),
565
- "undefined" != typeof global && (global.Prism = Prism);
566
- (Prism.languages.markup = {
567
- comment: /<!--[\s\S]*?-->/,
568
- prolog: /<\?[\s\S]+?\?>/,
569
- doctype: {
570
- pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
571
- greedy: !0,
572
- inside: {
573
- "internal-subset": {
574
- pattern: /(\[)[\s\S]+(?=\]>$)/,
575
- lookbehind: !0,
576
- greedy: !0,
577
- inside: null
578
- },
579
- string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 },
580
- punctuation: /^<!|>$|[[\]]/,
581
- "doctype-tag": /^DOCTYPE/,
582
- name: /[^\s<>'"]+/
583
- }
584
- },
585
- cdata: /<!\[CDATA\[[\s\S]*?]]>/i,
586
- tag: {
587
- pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
588
- greedy: !0,
589
- inside: {
590
- tag: {
591
- pattern: /^<\/?[^\s>\/]+/,
592
- inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ }
593
- },
594
- "special-attr": [],
595
- "attr-value": {
596
- pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
597
- inside: {
598
- punctuation: [
599
- { pattern: /^=/, alias: "attr-equals" },
600
- /"|'/
601
- ]
602
- }
603
- },
604
- punctuation: /\/?>/,
605
- "attr-name": {
606
- pattern: /[^\s>\/]+/,
607
- inside: { namespace: /^[^\s>\/:]+:/ }
608
- }
609
- }
610
- },
611
- entity: [
612
- { pattern: /&[\da-z]{1,8};/i, alias: "named-entity" },
613
- /&#x?[\da-f]{1,8};/i
614
- ]
615
- }),
616
- (Prism.languages.markup.tag.inside["attr-value"].inside.entity =
617
- Prism.languages.markup.entity),
618
- (Prism.languages.markup.doctype.inside["internal-subset"].inside =
619
- Prism.languages.markup),
620
- Prism.hooks.add("wrap", function (a) {
621
- "entity" === a.type &&
622
- (a.attributes.title = a.content.replace(/&amp;/, "&"));
623
- }),
624
- Object.defineProperty(Prism.languages.markup.tag, "addInlined", {
625
- value: function (a, e) {
626
- var s = {};
627
- (s["language-" + e] = {
628
- pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
629
- lookbehind: !0,
630
- inside: Prism.languages[e]
631
- }),
632
- (s.cdata = /^<!\[CDATA\[|\]\]>$/i);
633
- var t = {
634
- "included-cdata": {
635
- pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
636
- inside: s
637
- }
638
- };
639
- t["language-" + e] = {
640
- pattern: /[\s\S]+/,
641
- inside: Prism.languages[e]
642
- };
643
- var n = {};
644
- (n[a] = {
645
- pattern: RegExp(
646
- "(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[^])*?(?=</__>)".replace(
647
- /__/g,
648
- function () {
649
- return a;
650
- }
651
- ),
652
- "i"
653
- ),
654
- lookbehind: !0,
655
- greedy: !0,
656
- inside: t
657
- }),
658
- Prism.languages.insertBefore("markup", "cdata", n);
659
- }
660
- }),
661
- Object.defineProperty(Prism.languages.markup.tag, "addAttribute", {
662
- value: function (a, e) {
663
- Prism.languages.markup.tag.inside["special-attr"].push({
664
- pattern: RegExp(
665
- "(^|[\"'\\s])(?:" +
666
- a +
667
- ")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))",
668
- "i"
669
- ),
670
- lookbehind: !0,
671
- inside: {
672
- "attr-name": /^[^\s=]+/,
673
- "attr-value": {
674
- pattern: /=[\s\S]+/,
675
- inside: {
676
- value: {
677
- pattern: /(=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
678
- lookbehind: !0,
679
- alias: [e, "language-" + e],
680
- inside: Prism.languages[e]
681
- },
682
- punctuation: [
683
- { pattern: /^=/, alias: "attr-equals" },
684
- /"|'/
685
- ]
686
- }
687
- }
688
- }
689
- });
690
- }
691
- }),
692
- (Prism.languages.html = Prism.languages.markup),
693
- (Prism.languages.mathml = Prism.languages.markup),
694
- (Prism.languages.svg = Prism.languages.markup),
695
- (Prism.languages.xml = Prism.languages.extend("markup", {})),
696
- (Prism.languages.ssml = Prism.languages.xml),
697
- (Prism.languages.atom = Prism.languages.xml),
698
- (Prism.languages.rss = Prism.languages.xml);
699
- !(function (s) {
700
- var e = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;
701
- (s.languages.css = {
702
- comment: /\/\*[\s\S]*?\*\//,
703
- atrule: {
704
- pattern: /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,
705
- inside: {
706
- rule: /^@[\w-]+/,
707
- "selector-function-argument": {
708
- pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
709
- lookbehind: !0,
710
- alias: "selector"
711
- },
712
- keyword: {
713
- pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
714
- lookbehind: !0
715
- }
716
- }
717
- },
718
- url: {
719
- pattern: RegExp(
720
- "\\burl\\((?:" +
721
- e.source +
722
- "|(?:[^\\\\\r\n()\"']|\\\\[^])*)\\)",
723
- "i"
724
- ),
725
- greedy: !0,
726
- inside: {
727
- function: /^url/i,
728
- punctuation: /^\(|\)$/,
729
- string: {
730
- pattern: RegExp("^" + e.source + "$"),
731
- alias: "url"
732
- }
733
- }
734
- },
735
- selector: RegExp(
736
- "[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|" +
737
- e.source +
738
- ")*(?=\\s*\\{)"
739
- ),
740
- string: { pattern: e, greedy: !0 },
741
- property: /(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
742
- important: /!important\b/i,
743
- function: /[-a-z0-9]+(?=\()/i,
744
- punctuation: /[(){};:,]/
745
- }),
746
- (s.languages.css.atrule.inside.rest = s.languages.css);
747
- var t = s.languages.markup;
748
- t &&
749
- (t.tag.addInlined("style", "css"),
750
- t.tag.addAttribute("style", "css"));
751
- })(Prism);
752
- Prism.languages.clike = {
753
- comment: [
754
- {
755
- pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
756
- lookbehind: !0,
757
- greedy: !0
758
- },
759
- { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }
760
- ],
761
- string: {
762
- pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
763
- greedy: !0
764
- },
765
- "class-name": {
766
- pattern: /(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,
767
- lookbehind: !0,
768
- inside: { punctuation: /[.\\]/ }
769
- },
770
- keyword: /\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,
771
- boolean: /\b(?:true|false)\b/,
772
- function: /\w+(?=\()/,
773
- number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
774
- operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
775
- punctuation: /[{}[\];(),.:]/
776
- };
777
- (Prism.languages.javascript = Prism.languages.extend("clike", {
778
- "class-name": [
779
- Prism.languages.clike["class-name"],
780
- {
781
- pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,
782
- lookbehind: !0
783
- }
784
- ],
785
- keyword: [
786
- { pattern: /((?:^|})\s*)catch\b/, lookbehind: !0 },
787
- {
788
- pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|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/,
789
- lookbehind: !0
790
- }
791
- ],
792
- function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
793
- number: /\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,
794
- operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
795
- })),
796
- (Prism.languages.javascript[
797
- "class-name"
798
- ][0].pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/),
799
- Prism.languages.insertBefore("javascript", "keyword", {
800
- regex: {
801
- pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,
802
- lookbehind: !0,
803
- greedy: !0,
804
- inside: {
805
- "regex-source": {
806
- pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
807
- lookbehind: !0,
808
- alias: "language-regex",
809
- inside: Prism.languages.regex
810
- },
811
- "regex-flags": /[a-z]+$/,
812
- "regex-delimiter": /^\/|\/$/
813
- }
814
- },
815
- "function-variable": {
816
- 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*=>))/,
817
- alias: "function"
818
- },
819
- parameter: [
820
- {
821
- pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
822
- lookbehind: !0,
823
- inside: Prism.languages.javascript
824
- },
825
- {
826
- pattern: /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
827
- inside: Prism.languages.javascript
828
- },
829
- {
830
- pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
831
- lookbehind: !0,
832
- inside: Prism.languages.javascript
833
- },
834
- {
835
- 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*\{)/,
836
- lookbehind: !0,
837
- inside: Prism.languages.javascript
838
- }
839
- ],
840
- constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
841
- }),
842
- Prism.languages.insertBefore("javascript", "string", {
843
- hashbang: { pattern: /^#!.*/, greedy: !0, alias: "comment" },
844
- "template-string": {
845
- pattern: /`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,
846
- greedy: !0,
847
- inside: {
848
- "template-punctuation": {
849
- pattern: /^`|`$/,
850
- alias: "string"
851
- },
852
- interpolation: {
853
- pattern: /((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,
854
- lookbehind: !0,
855
- inside: {
856
- "interpolation-punctuation": {
857
- pattern: /^\${|}$/,
858
- alias: "punctuation"
859
- },
860
- rest: Prism.languages.javascript
861
- }
862
- },
863
- string: /[\s\S]+/
864
- }
865
- }
866
- }),
867
- Prism.languages.markup &&
868
- (Prism.languages.markup.tag.addInlined("script", "javascript"),
869
- Prism.languages.markup.tag.addAttribute(
870
- "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)",
871
- "javascript"
872
- )),
873
- (Prism.languages.js = Prism.languages.javascript);
874
- Prism.languages.sql = {
875
- comment: {
876
- pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,
877
- lookbehind: !0
878
- },
879
- variable: [
880
- { pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, greedy: !0 },
881
- /@[\w.$]+/
882
- ],
883
- string: {
884
- pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,
885
- greedy: !0,
886
- lookbehind: !0
887
- },
888
- function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,
889
- keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,
890
- boolean: /\b(?:TRUE|FALSE|NULL)\b/i,
891
- number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,
892
- operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,
893
- punctuation: /[;[\]()`,.]/
894
- };
895
- !(function (e) {
896
- var t = /\b(?:abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|get(?=\s*[{};])|(?:after|before)(?=\s+[a-z])|(?:inherited|with|without)\s+sharing)\b/i,
897
- n = "\\b(?:(?=[a-z_]\\w*\\s*[<\\[])|(?!<keyword>))[A-Z_]\\w*(?:\\s*\\.\\s*[A-Z_]\\w*)*\\b(?:\\s*(?:\\[\\s*\\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*".replace(
898
- /<keyword>/g,
899
- function () {
900
- return t.source;
901
- }
902
- );
903
- function i(e) {
904
- return RegExp(
905
- e.replace(/<CLASS-NAME>/g, function () {
906
- return n;
907
- }),
908
- "i"
909
- );
910
- }
911
- var a = { keyword: t, punctuation: /[()\[\]{};,:.<>]/ };
912
- e.languages.apex = {
913
- comment: e.languages.clike.comment,
914
- string: e.languages.clike.string,
915
- sql: {
916
- pattern: /((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,
917
- lookbehind: !0,
918
- greedy: !0,
919
- alias: "language-sql",
920
- inside: e.languages.sql
921
- },
922
- annotation: { pattern: /@\w+\b/, alias: "punctuation" },
923
- "class-name": [
924
- {
925
- pattern: i(
926
- "(\\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\\s+\\w+\\s+on)\\s+)<CLASS-NAME>"
927
- ),
928
- lookbehind: !0,
929
- inside: a
930
- },
931
- {
932
- pattern: i("(\\(\\s*)<CLASS-NAME>(?=\\s*\\)\\s*[\\w(])"),
933
- lookbehind: !0,
934
- inside: a
935
- },
936
- {
937
- pattern: i("<CLASS-NAME>(?=\\s*\\w+\\s*[;=,(){:])"),
938
- inside: a
939
- }
940
- ],
941
- trigger: {
942
- pattern: /(\btrigger\s+)\w+\b/i,
943
- lookbehind: !0,
944
- alias: "class-name"
945
- },
946
- keyword: t,
947
- function: /\b[a-z_]\w*(?=\s*\()/i,
948
- boolean: /\b(?:false|true)\b/i,
949
- number: /(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,
950
- operator: /[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,
951
- punctuation: /[()\[\]{};,.]/
952
- };
953
- })(Prism);
954
- !(function (s) {
955
- function a(e, s) {
956
- return e.replace(/<<(\d+)>>/g, function (e, n) {
957
- return "(?:" + s[+n] + ")";
958
- });
959
- }
960
- function t(e, n, s) {
961
- return RegExp(a(e, n), s || "");
962
- }
963
- function e(e, n) {
964
- for (var s = 0; s < n; s++)
965
- e = e.replace(/<<self>>/g, function () {
966
- return "(?:" + e + ")";
967
- });
968
- return e.replace(/<<self>>/g, "[^\\s\\S]");
969
- }
970
- var n =
971
- "bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",
972
- i = "class enum interface struct",
973
- r =
974
- "add alias and ascending async await by descending from get global group into join let nameof not notnull on or orderby partial remove select set unmanaged value when where",
975
- o =
976
- "abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";
977
- function l(e) {
978
- return "\\b(?:" + e.trim().replace(/ /g, "|") + ")\\b";
979
- }
980
- var d = l(i),
981
- p = RegExp(l(n + " " + i + " " + r + " " + o)),
982
- c = l(i + " " + r + " " + o),
983
- u = l(n + " " + i + " " + o),
984
- g = e("<(?:[^<>;=+\\-*/%&|^]|<<self>>)*>", 2),
985
- b = e("\\((?:[^()]|<<self>>)*\\)", 2),
986
- h = "@?\\b[A-Za-z_]\\w*\\b",
987
- f = a("<<0>>(?:\\s*<<1>>)?", [h, g]),
988
- m = a("(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*", [c, f]),
989
- k = "\\[\\s*(?:,\\s*)*\\]",
990
- y = a("<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?", [m, k]),
991
- w = a("(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?", [
992
- a("\\(<<0>>+(?:,<<0>>+)+\\)", [
993
- a("[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>", [g, b, k])
994
- ]),
995
- m,
996
- k
997
- ]),
998
- v = { keyword: p, punctuation: /[<>()?,.:[\]]/ },
999
- x = "'(?:[^\r\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'",
1000
- $ = '"(?:\\\\.|[^\\\\"\r\n])*"';
1001
- (s.languages.csharp = s.languages.extend("clike", {
1002
- string: [
1003
- {
1004
- pattern: t("(^|[^$\\\\])<<0>>", [
1005
- '@"(?:""|\\\\[^]|[^\\\\"])*"(?!")'
1006
- ]),
1007
- lookbehind: !0,
1008
- greedy: !0
1009
- },
1010
- {
1011
- pattern: t("(^|[^@$\\\\])<<0>>", [$]),
1012
- lookbehind: !0,
1013
- greedy: !0
1014
- },
1015
- { pattern: RegExp(x), greedy: !0, alias: "character" }
1016
- ],
1017
- "class-name": [
1018
- {
1019
- pattern: t("(\\busing\\s+static\\s+)<<0>>(?=\\s*;)", [m]),
1020
- lookbehind: !0,
1021
- inside: v
1022
- },
1023
- {
1024
- pattern: t("(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)", [
1025
- h,
1026
- w
1027
- ]),
1028
- lookbehind: !0,
1029
- inside: v
1030
- },
1031
- {
1032
- pattern: t("(\\busing\\s+)<<0>>(?=\\s*=)", [h]),
1033
- lookbehind: !0
1034
- },
1035
- {
1036
- pattern: t("(\\b<<0>>\\s+)<<1>>", [d, f]),
1037
- lookbehind: !0,
1038
- inside: v
1039
- },
1040
- {
1041
- pattern: t("(\\bcatch\\s*\\(\\s*)<<0>>", [m]),
1042
- lookbehind: !0,
1043
- inside: v
1044
- },
1045
- { pattern: t("(\\bwhere\\s+)<<0>>", [h]), lookbehind: !0 },
1046
- {
1047
- pattern: t("(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>", [y]),
1048
- lookbehind: !0,
1049
- inside: v
1050
- },
1051
- {
1052
- pattern: t(
1053
- "\\b<<0>>(?=\\s+(?!<<1>>)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))",
1054
- [w, u, h]
1055
- ),
1056
- inside: v
1057
- }
1058
- ],
1059
- keyword: p,
1060
- number: /(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,
1061
- operator: />>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,
1062
- punctuation: /\?\.?|::|[{}[\];(),.:]/
1063
- })),
1064
- s.languages.insertBefore("csharp", "number", {
1065
- range: { pattern: /\.\./, alias: "operator" }
1066
- }),
1067
- s.languages.insertBefore("csharp", "punctuation", {
1068
- "named-parameter": {
1069
- pattern: t("([(,]\\s*)<<0>>(?=\\s*:)", [h]),
1070
- lookbehind: !0,
1071
- alias: "punctuation"
1072
- }
1073
- }),
1074
- s.languages.insertBefore("csharp", "class-name", {
1075
- namespace: {
1076
- pattern: t(
1077
- "(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])",
1078
- [h]
1079
- ),
1080
- lookbehind: !0,
1081
- inside: { punctuation: /\./ }
1082
- },
1083
- "type-expression": {
1084
- pattern: t(
1085
- "(\\b(?:default|typeof|sizeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))",
1086
- [b]
1087
- ),
1088
- lookbehind: !0,
1089
- alias: "class-name",
1090
- inside: v
1091
- },
1092
- "return-type": {
1093
- pattern: t(
1094
- "<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))",
1095
- [w, m]
1096
- ),
1097
- inside: v,
1098
- alias: "class-name"
1099
- },
1100
- "constructor-invocation": {
1101
- pattern: t("(\\bnew\\s+)<<0>>(?=\\s*[[({])", [w]),
1102
- lookbehind: !0,
1103
- inside: v,
1104
- alias: "class-name"
1105
- },
1106
- "generic-method": {
1107
- pattern: t("<<0>>\\s*<<1>>(?=\\s*\\()", [h, g]),
1108
- inside: {
1109
- function: t("^<<0>>", [h]),
1110
- generic: {
1111
- pattern: RegExp(g),
1112
- alias: "class-name",
1113
- inside: v
1114
- }
1115
- }
1116
- },
1117
- "type-list": {
1118
- pattern: t(
1119
- "\\b((?:<<0>>\\s+<<1>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>)(?:\\s*,\\s*(?:<<3>>|<<4>>))*(?=\\s*(?:where|[{;]|=>|$))",
1120
- [d, f, h, w, p.source]
1121
- ),
1122
- lookbehind: !0,
1123
- inside: {
1124
- keyword: p,
1125
- "class-name": {
1126
- pattern: RegExp(w),
1127
- greedy: !0,
1128
- inside: v
1129
- },
1130
- punctuation: /,/
1131
- }
1132
- },
1133
- preprocessor: {
1134
- pattern: /(^\s*)#.*/m,
1135
- lookbehind: !0,
1136
- alias: "property",
1137
- inside: {
1138
- directive: {
1139
- pattern: /(\s*#)\b(?:define|elif|else|endif|endregion|error|if|line|pragma|region|undef|warning)\b/,
1140
- lookbehind: !0,
1141
- alias: "keyword"
1142
- }
1143
- }
1144
- }
1145
- });
1146
- var _ = $ + "|" + x,
1147
- B = a(
1148
- "/(?![*/])|//[^\r\n]*[\r\n]|/\\*(?:[^*]|\\*(?!/))*\\*/|<<0>>",
1149
- [_]
1150
- ),
1151
- E = e(a("[^\"'/()]|<<0>>|\\(<<self>>*\\)", [B]), 2),
1152
- R =
1153
- "\\b(?:assembly|event|field|method|module|param|property|return|type)\\b",
1154
- P = a("<<0>>(?:\\s*\\(<<1>>*\\))?", [m, E]);
1155
- s.languages.insertBefore("csharp", "class-name", {
1156
- attribute: {
1157
- pattern: t(
1158
- "((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])",
1159
- [R, P]
1160
- ),
1161
- lookbehind: !0,
1162
- greedy: !0,
1163
- inside: {
1164
- target: {
1165
- pattern: t("^<<0>>(?=\\s*:)", [R]),
1166
- alias: "keyword"
1167
- },
1168
- "attribute-arguments": {
1169
- pattern: t("\\(<<0>>*\\)", [E]),
1170
- inside: s.languages.csharp
1171
- },
1172
- "class-name": {
1173
- pattern: RegExp(m),
1174
- inside: { punctuation: /\./ }
1175
- },
1176
- punctuation: /[:,]/
1177
- }
1178
- }
1179
- });
1180
- var z = ":[^}\r\n]+",
1181
- S = e(a("[^\"'/()]|<<0>>|\\(<<self>>*\\)", [B]), 2),
1182
- j = a("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [S, z]),
1183
- A = e(
1184
- a(
1185
- "[^\"'/()]|/(?!\\*)|/\\*(?:[^*]|\\*(?!/))*\\*/|<<0>>|\\(<<self>>*\\)",
1186
- [_]
1187
- ),
1188
- 2
1189
- ),
1190
- F = a("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [A, z]);
1191
- function U(e, n) {
1192
- return {
1193
- interpolation: {
1194
- pattern: t("((?:^|[^{])(?:\\{\\{)*)<<0>>", [e]),
1195
- lookbehind: !0,
1196
- inside: {
1197
- "format-string": {
1198
- pattern: t(
1199
- "(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)",
1200
- [n, z]
1201
- ),
1202
- lookbehind: !0,
1203
- inside: { punctuation: /^:/ }
1204
- },
1205
- punctuation: /^\{|\}$/,
1206
- expression: {
1207
- pattern: /[\s\S]+/,
1208
- alias: "language-csharp",
1209
- inside: s.languages.csharp
1210
- }
1211
- }
1212
- },
1213
- string: /[\s\S]+/
1214
- };
1215
- }
1216
- s.languages.insertBefore("csharp", "string", {
1217
- "interpolation-string": [
1218
- {
1219
- pattern: t(
1220
- '(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[^]|\\{\\{|<<0>>|[^\\\\{"])*"',
1221
- [j]
1222
- ),
1223
- lookbehind: !0,
1224
- greedy: !0,
1225
- inside: U(j, S)
1226
- },
1227
- {
1228
- pattern: t(
1229
- '(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"',
1230
- [F]
1231
- ),
1232
- lookbehind: !0,
1233
- greedy: !0,
1234
- inside: U(F, A)
1235
- }
1236
- ]
1237
- });
1238
- })(Prism),
1239
- (Prism.languages.dotnet = Prism.languages.cs = Prism.languages.csharp);
1240
- (Prism.languages.aspnet = Prism.languages.extend("markup", {
1241
- "page-directive": {
1242
- pattern: /<%\s*@.*%>/i,
1243
- alias: "tag",
1244
- inside: {
1245
- "page-directive": {
1246
- pattern: /<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,
1247
- alias: "tag"
1248
- },
1249
- rest: Prism.languages.markup.tag.inside
1250
- }
1251
- },
1252
- directive: {
1253
- pattern: /<%.*%>/i,
1254
- alias: "tag",
1255
- inside: {
1256
- directive: { pattern: /<%\s*?[$=%#:]{0,2}|%>/i, alias: "tag" },
1257
- rest: Prism.languages.csharp
1258
- }
1259
- }
1260
- })),
1261
- (Prism.languages.aspnet.tag.pattern = /<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i),
1262
- Prism.languages.insertBefore(
1263
- "inside",
1264
- "punctuation",
1265
- { directive: Prism.languages.aspnet.directive },
1266
- Prism.languages.aspnet.tag.inside["attr-value"]
1267
- ),
1268
- Prism.languages.insertBefore("aspnet", "comment", {
1269
- "asp-comment": {
1270
- pattern: /<%--[\s\S]*?--%>/,
1271
- alias: ["asp", "comment"]
1272
- }
1273
- }),
1274
- Prism.languages.insertBefore(
1275
- "aspnet",
1276
- Prism.languages.javascript ? "script" : "tag",
1277
- {
1278
- "asp-script": {
1279
- pattern: /(<script(?=.*runat=['"]?server['"]?)[^>]*>)[\s\S]*?(?=<\/script>)/i,
1280
- lookbehind: !0,
1281
- alias: ["asp", "script"],
1282
- inside: Prism.languages.csharp || {}
1283
- }
1284
- }
1285
- );
1286
- Prism.languages.basic = {
1287
- comment: { pattern: /(?:!|REM\b).+/i, inside: { keyword: /^REM/i } },
1288
- string: {
1289
- pattern: /"(?:""|[!#$%&'()*,\/:;<=>?^_ +\-.A-Z\d])*"/i,
1290
- greedy: !0
1291
- },
1292
- number: /(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,
1293
- keyword: /\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SHARED|SINGLE|SELECT CASE|SHELL|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,
1294
- function: /\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,
1295
- operator: /<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,
1296
- punctuation: /[,;:()]/
1297
- };
1298
- (Prism.languages.c = Prism.languages.extend("clike", {
1299
- comment: {
1300
- pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,
1301
- greedy: !0
1302
- },
1303
- "class-name": {
1304
- pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,
1305
- lookbehind: !0
1306
- },
1307
- keyword: /\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,
1308
- function: /[a-z_]\w*(?=\s*\()/i,
1309
- number: /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,
1310
- operator: />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/
1311
- })),
1312
- Prism.languages.insertBefore("c", "string", {
1313
- macro: {
1314
- pattern: /(^\s*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,
1315
- lookbehind: !0,
1316
- greedy: !0,
1317
- alias: "property",
1318
- inside: {
1319
- string: [
1320
- { pattern: /^(#\s*include\s*)<[^>]+>/, lookbehind: !0 },
1321
- Prism.languages.c.string
1322
- ],
1323
- comment: Prism.languages.c.comment,
1324
- "macro-name": [
1325
- {
1326
- pattern: /(^#\s*define\s+)\w+\b(?!\()/i,
1327
- lookbehind: !0
1328
- },
1329
- {
1330
- pattern: /(^#\s*define\s+)\w+\b(?=\()/i,
1331
- lookbehind: !0,
1332
- alias: "function"
1333
- }
1334
- ],
1335
- directive: {
1336
- pattern: /^(#\s*)[a-z]+/,
1337
- lookbehind: !0,
1338
- alias: "keyword"
1339
- },
1340
- "directive-hash": /^#/,
1341
- punctuation: /##|\\(?=[\r\n])/,
1342
- expression: {
1343
- pattern: /\S[\s\S]*/,
1344
- inside: Prism.languages.c
1345
- }
1346
- }
1347
- },
1348
- constant: /\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/
1349
- }),
1350
- delete Prism.languages.c.boolean;
1351
- !(function (e) {
1352
- var t = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,
1353
- n = "\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b".replace(
1354
- /<keyword>/g,
1355
- function () {
1356
- return t.source;
1357
- }
1358
- );
1359
- (e.languages.cpp = e.languages.extend("c", {
1360
- "class-name": [
1361
- {
1362
- pattern: RegExp(
1363
- "(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+".replace(
1364
- /<keyword>/g,
1365
- function () {
1366
- return t.source;
1367
- }
1368
- )
1369
- ),
1370
- lookbehind: !0
1371
- },
1372
- /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,
1373
- /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,
1374
- /\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/
1375
- ],
1376
- keyword: t,
1377
- number: {
1378
- pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,
1379
- greedy: !0
1380
- },
1381
- operator: />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,
1382
- boolean: /\b(?:true|false)\b/
1383
- })),
1384
- e.languages.insertBefore("cpp", "string", {
1385
- module: {
1386
- pattern: RegExp(
1387
- '(\\b(?:module|import)\\s+)(?:"(?:\\\\(?:\r\n|[^])|[^"\\\\\r\n])*"|<[^<>\r\n]*>|' +
1388
- "<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>".replace(
1389
- /<mod-name>/g,
1390
- function () {
1391
- return n;
1392
- }
1393
- ) +
1394
- ")"
1395
- ),
1396
- lookbehind: !0,
1397
- greedy: !0,
1398
- inside: {
1399
- string: /^[<"][\s\S]+/,
1400
- operator: /:/,
1401
- punctuation: /\./
1402
- }
1403
- },
1404
- "raw-string": {
1405
- pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,
1406
- alias: "string",
1407
- greedy: !0
1408
- }
1409
- }),
1410
- e.languages.insertBefore("cpp", "keyword", {
1411
- "generic-function": {
1412
- pattern: /\b[a-z_]\w*\s*<(?:[^<>]|<(?:[^<>])*>)*>(?=\s*\()/i,
1413
- inside: {
1414
- function: /^\w+/,
1415
- generic: {
1416
- pattern: /<[\s\S]+/,
1417
- alias: "class-name",
1418
- inside: e.languages.cpp
1419
- }
1420
- }
1421
- }
1422
- }),
1423
- e.languages.insertBefore("cpp", "operator", {
1424
- "double-colon": { pattern: /::/, alias: "punctuation" }
1425
- }),
1426
- e.languages.insertBefore("cpp", "class-name", {
1427
- "base-clause": {
1428
- pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,
1429
- lookbehind: !0,
1430
- greedy: !0,
1431
- inside: e.languages.extend("cpp", {})
1432
- }
1433
- }),
1434
- e.languages.insertBefore(
1435
- "inside",
1436
- "double-colon",
1437
- { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i },
1438
- e.languages.cpp["base-clause"]
1439
- );
1440
- })(Prism);
1441
- !(function (e) {
1442
- var a,
1443
- n = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;
1444
- (e.languages.css.selector = {
1445
- pattern: e.languages.css.selector,
1446
- inside: a = {
1447
- "pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,
1448
- "pseudo-class": /:[-\w]+/,
1449
- class: /\.[-\w]+/,
1450
- id: /#[-\w]+/,
1451
- attribute: {
1452
- pattern: RegExp("\\[(?:[^[\\]\"']|" + n.source + ")*\\]"),
1453
- greedy: !0,
1454
- inside: {
1455
- punctuation: /^\[|\]$/,
1456
- "case-sensitivity": {
1457
- pattern: /(\s)[si]$/i,
1458
- lookbehind: !0,
1459
- alias: "keyword"
1460
- },
1461
- namespace: {
1462
- pattern: /^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,
1463
- lookbehind: !0,
1464
- inside: { punctuation: /\|$/ }
1465
- },
1466
- "attr-name": {
1467
- pattern: /^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,
1468
- lookbehind: !0
1469
- },
1470
- "attr-value": [
1471
- n,
1472
- {
1473
- pattern: /(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,
1474
- lookbehind: !0
1475
- }
1476
- ],
1477
- operator: /[|~*^$]?=/
1478
- }
1479
- },
1480
- "n-th": [
1481
- {
1482
- pattern: /(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,
1483
- lookbehind: !0,
1484
- inside: { number: /[\dn]+/, operator: /[+-]/ }
1485
- },
1486
- { pattern: /(\(\s*)(?:even|odd)(?=\s*\))/i, lookbehind: !0 }
1487
- ],
1488
- combinator: />|\+|~|\|\|/,
1489
- punctuation: /[(),]/
1490
- }
1491
- }),
1492
- (e.languages.css.atrule.inside[
1493
- "selector-function-argument"
1494
- ].inside = a),
1495
- e.languages.insertBefore("css", "property", {
1496
- variable: {
1497
- pattern: /(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,
1498
- lookbehind: !0
1499
- }
1500
- });
1501
- var r = { pattern: /(\b\d+)(?:%|[a-z]+\b)/, lookbehind: !0 },
1502
- i = {
1503
- pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,
1504
- lookbehind: !0
1505
- };
1506
- e.languages.insertBefore("css", "function", {
1507
- operator: { pattern: /(\s)[+\-*\/](?=\s)/, lookbehind: !0 },
1508
- hexcode: { pattern: /\B#(?:[\da-f]{1,2}){3,4}\b/i, alias: "color" },
1509
- color: [
1510
- /\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,
1511
- {
1512
- pattern: /\b(?:rgb|hsl)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:rgb|hsl)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,
1513
- inside: {
1514
- unit: r,
1515
- number: i,
1516
- function: /[\w-]+(?=\()/,
1517
- punctuation: /[(),]/
1518
- }
1519
- }
1520
- ],
1521
- entity: /\\[\da-f]{1,8}/i,
1522
- unit: r,
1523
- number: i
1524
- });
1525
- })(Prism);
1526
- !(function (e) {
1527
- var t = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,
1528
- n = "(^|[^\\w.])(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*",
1529
- a = {
1530
- pattern: RegExp(n + "[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b"),
1531
- lookbehind: !0,
1532
- inside: {
1533
- namespace: {
1534
- pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,
1535
- inside: { punctuation: /\./ }
1536
- },
1537
- punctuation: /\./
1538
- }
1539
- };
1540
- (e.languages.java = e.languages.extend("clike", {
1541
- "class-name": [
1542
- a,
1543
- {
1544
- pattern: RegExp(n + "[A-Z]\\w*(?=\\s+\\w+\\s*[;,=())])"),
1545
- lookbehind: !0,
1546
- inside: a.inside
1547
- }
1548
- ],
1549
- keyword: t,
1550
- function: [
1551
- e.languages.clike.function,
1552
- { pattern: /(\:\:\s*)[a-z_]\w*/, lookbehind: !0 }
1553
- ],
1554
- number: /\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,
1555
- operator: {
1556
- pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,
1557
- lookbehind: !0
1558
- }
1559
- })),
1560
- e.languages.insertBefore("java", "string", {
1561
- "triple-quoted-string": {
1562
- pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,
1563
- greedy: !0,
1564
- alias: "string"
1565
- }
1566
- }),
1567
- e.languages.insertBefore("java", "class-name", {
1568
- annotation: {
1569
- pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/,
1570
- lookbehind: !0,
1571
- alias: "punctuation"
1572
- },
1573
- generics: {
1574
- pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,
1575
- inside: {
1576
- "class-name": a,
1577
- keyword: t,
1578
- punctuation: /[<>(),.:]/,
1579
- operator: /[?&|]/
1580
- }
1581
- },
1582
- namespace: {
1583
- pattern: RegExp(
1584
- "(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?".replace(
1585
- /<keyword>/g,
1586
- function () {
1587
- return t.source;
1588
- }
1589
- )
1590
- ),
1591
- lookbehind: !0,
1592
- inside: { punctuation: /\./ }
1593
- }
1594
- });
1595
- })(Prism);
1596
- !(function (h) {
1597
- function v(e, n) {
1598
- return "___" + e.toUpperCase() + n + "___";
1599
- }
1600
- Object.defineProperties((h.languages["markup-templating"] = {}), {
1601
- buildPlaceholders: {
1602
- value: function (a, r, e, o) {
1603
- if (a.language === r) {
1604
- var c = (a.tokenStack = []);
1605
- (a.code = a.code.replace(e, function (e) {
1606
- if ("function" == typeof o && !o(e)) return e;
1607
- for (
1608
- var n, t = c.length;
1609
- -1 !== a.code.indexOf((n = v(r, t)));
1610
-
1611
- )
1612
- ++t;
1613
- return (c[t] = e), n;
1614
- })),
1615
- (a.grammar = h.languages.markup);
1616
- }
1617
- }
1618
- },
1619
- tokenizePlaceholders: {
1620
- value: function (p, k) {
1621
- if (p.language === k && p.tokenStack) {
1622
- p.grammar = h.languages[k];
1623
- var m = 0,
1624
- d = Object.keys(p.tokenStack);
1625
- !(function e(n) {
1626
- for (
1627
- var t = 0;
1628
- t < n.length && !(m >= d.length);
1629
- t++
1630
- ) {
1631
- var a = n[t];
1632
- if (
1633
- "string" == typeof a ||
1634
- (a.content && "string" == typeof a.content)
1635
- ) {
1636
- var r = d[m],
1637
- o = p.tokenStack[r],
1638
- c =
1639
- "string" == typeof a
1640
- ? a
1641
- : a.content,
1642
- i = v(k, r),
1643
- u = c.indexOf(i);
1644
- if (-1 < u) {
1645
- ++m;
1646
- var g = c.substring(0, u),
1647
- l = new h.Token(
1648
- k,
1649
- h.tokenize(o, p.grammar),
1650
- "language-" + k,
1651
- o
1652
- ),
1653
- s = c.substring(u + i.length),
1654
- f = [];
1655
- g && f.push.apply(f, e([g])),
1656
- f.push(l),
1657
- s && f.push.apply(f, e([s])),
1658
- "string" == typeof a
1659
- ? n.splice.apply(
1660
- n,
1661
- [t, 1].concat(f)
1662
- )
1663
- : (a.content = f);
1664
- }
1665
- } else a.content && e(a.content);
1666
- }
1667
- return n;
1668
- })(p.tokens);
1669
- }
1670
- }
1671
- }
1672
- });
1673
- })(Prism);
1674
- !(function (a) {
1675
- var e = /\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,
1676
- t = [
1677
- { pattern: /\b(?:false|true)\b/i, alias: "boolean" },
1678
- {
1679
- pattern: /(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,
1680
- greedy: !0,
1681
- lookbehind: !0
1682
- },
1683
- {
1684
- pattern: /(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,
1685
- greedy: !0,
1686
- lookbehind: !0
1687
- },
1688
- /\b(?:null)\b/i,
1689
- /\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/
1690
- ],
1691
- i = /\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
1692
- n = /<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,
1693
- s = /[{}\[\](),:;]/;
1694
- a.languages.php = {
1695
- delimiter: {
1696
- pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i,
1697
- alias: "important"
1698
- },
1699
- comment: e,
1700
- variable: /\$+(?:\w+\b|(?={))/i,
1701
- package: {
1702
- pattern: /(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
1703
- lookbehind: !0,
1704
- inside: { punctuation: /\\/ }
1705
- },
1706
- "class-name-definition": {
1707
- pattern: /(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,
1708
- lookbehind: !0,
1709
- alias: "class-name"
1710
- },
1711
- "function-definition": {
1712
- pattern: /(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,
1713
- lookbehind: !0,
1714
- alias: "function"
1715
- },
1716
- keyword: [
1717
- {
1718
- pattern: /(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,
1719
- alias: "type-casting",
1720
- greedy: !0,
1721
- lookbehind: !0
1722
- },
1723
- {
1724
- pattern: /([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,
1725
- alias: "type-hint",
1726
- greedy: !0,
1727
- lookbehind: !0
1728
- },
1729
- {
1730
- pattern: /([(,?]\s*[a-z0-9_|]\|\s*)(?:null|false)\b(?=\s*\$)/i,
1731
- alias: "type-hint",
1732
- greedy: !0,
1733
- lookbehind: !0
1734
- },
1735
- {
1736
- pattern: /(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,
1737
- alias: "return-type",
1738
- greedy: !0,
1739
- lookbehind: !0
1740
- },
1741
- {
1742
- pattern: /(\)\s*:\s*(?:\?\s*)?[a-z0-9_|]\|\s*)(?:null|false)\b/i,
1743
- alias: "return-type",
1744
- greedy: !0,
1745
- lookbehind: !0
1746
- },
1747
- {
1748
- pattern: /\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,
1749
- alias: "type-declaration",
1750
- greedy: !0
1751
- },
1752
- {
1753
- pattern: /(\|\s*)(?:null|false)\b/i,
1754
- alias: "type-declaration",
1755
- greedy: !0,
1756
- lookbehind: !0
1757
- },
1758
- {
1759
- pattern: /\b(?:parent|self|static)(?=\s*::)/i,
1760
- alias: "static-context",
1761
- greedy: !0
1762
- },
1763
- { pattern: /(\byield\s+)from\b/i, lookbehind: !0 },
1764
- /\bclass\b/i,
1765
- {
1766
- pattern: /((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,
1767
- lookbehind: !0
1768
- }
1769
- ],
1770
- "argument-name": {
1771
- pattern: /([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,
1772
- lookbehind: !0
1773
- },
1774
- "class-name": [
1775
- {
1776
- pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,
1777
- greedy: !0,
1778
- lookbehind: !0
1779
- },
1780
- {
1781
- pattern: /(\|\s*)\b[a-z_]\w*(?!\\)\b/i,
1782
- greedy: !0,
1783
- lookbehind: !0
1784
- },
1785
- { pattern: /\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i, greedy: !0 },
1786
- {
1787
- pattern: /(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,
1788
- alias: "class-name-fully-qualified",
1789
- greedy: !0,
1790
- lookbehind: !0,
1791
- inside: { punctuation: /\\/ }
1792
- },
1793
- {
1794
- pattern: /(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,
1795
- alias: "class-name-fully-qualified",
1796
- greedy: !0,
1797
- inside: { punctuation: /\\/ }
1798
- },
1799
- {
1800
- pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
1801
- alias: "class-name-fully-qualified",
1802
- greedy: !0,
1803
- lookbehind: !0,
1804
- inside: { punctuation: /\\/ }
1805
- },
1806
- {
1807
- pattern: /\b[a-z_]\w*(?=\s*\$)/i,
1808
- alias: "type-declaration",
1809
- greedy: !0
1810
- },
1811
- {
1812
- pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
1813
- alias: ["class-name-fully-qualified", "type-declaration"],
1814
- greedy: !0,
1815
- inside: { punctuation: /\\/ }
1816
- },
1817
- {
1818
- pattern: /\b[a-z_]\w*(?=\s*::)/i,
1819
- alias: "static-context",
1820
- greedy: !0
1821
- },
1822
- {
1823
- pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,
1824
- alias: ["class-name-fully-qualified", "static-context"],
1825
- greedy: !0,
1826
- inside: { punctuation: /\\/ }
1827
- },
1828
- {
1829
- pattern: /([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,
1830
- alias: "type-hint",
1831
- greedy: !0,
1832
- lookbehind: !0
1833
- },
1834
- {
1835
- pattern: /([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
1836
- alias: ["class-name-fully-qualified", "type-hint"],
1837
- greedy: !0,
1838
- lookbehind: !0,
1839
- inside: { punctuation: /\\/ }
1840
- },
1841
- {
1842
- pattern: /(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,
1843
- alias: "return-type",
1844
- greedy: !0,
1845
- lookbehind: !0
1846
- },
1847
- {
1848
- pattern: /(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
1849
- alias: ["class-name-fully-qualified", "return-type"],
1850
- greedy: !0,
1851
- lookbehind: !0,
1852
- inside: { punctuation: /\\/ }
1853
- }
1854
- ],
1855
- constant: t,
1856
- function: /\b\w+(?=\s*\()/,
1857
- property: { pattern: /(->\s*)\w+/, lookbehind: !0 },
1858
- number: i,
1859
- operator: n,
1860
- punctuation: s
1861
- };
1862
- var l = {
1863
- pattern: /{\$(?:{(?:{[^{}]+}|[^{}]+)}|[^{}])+}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)*)/,
1864
- lookbehind: !0,
1865
- inside: a.languages.php
1866
- },
1867
- r = [
1868
- {
1869
- pattern: /<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,
1870
- alias: "nowdoc-string",
1871
- greedy: !0,
1872
- inside: {
1873
- delimiter: {
1874
- pattern: /^<<<'[^']+'|[a-z_]\w*;$/i,
1875
- alias: "symbol",
1876
- inside: { punctuation: /^<<<'?|[';]$/ }
1877
- }
1878
- }
1879
- },
1880
- {
1881
- pattern: /<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,
1882
- alias: "heredoc-string",
1883
- greedy: !0,
1884
- inside: {
1885
- delimiter: {
1886
- pattern: /^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,
1887
- alias: "symbol",
1888
- inside: { punctuation: /^<<<"?|[";]$/ }
1889
- },
1890
- interpolation: l
1891
- }
1892
- },
1893
- {
1894
- pattern: /`(?:\\[\s\S]|[^\\`])*`/,
1895
- alias: "backtick-quoted-string",
1896
- greedy: !0
1897
- },
1898
- {
1899
- pattern: /'(?:\\[\s\S]|[^\\'])*'/,
1900
- alias: "single-quoted-string",
1901
- greedy: !0
1902
- },
1903
- {
1904
- pattern: /"(?:\\[\s\S]|[^\\"])*"/,
1905
- alias: "double-quoted-string",
1906
- greedy: !0,
1907
- inside: { interpolation: l }
1908
- }
1909
- ];
1910
- a.languages.insertBefore("php", "variable", {
1911
- string: r,
1912
- attribute: {
1913
- pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,
1914
- greedy: !0,
1915
- inside: {
1916
- "attribute-content": {
1917
- pattern: /^(#\[)[\s\S]+(?=]$)/,
1918
- lookbehind: !0,
1919
- inside: {
1920
- comment: e,
1921
- string: r,
1922
- "attribute-class-name": [
1923
- {
1924
- pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/i,
1925
- alias: "class-name",
1926
- greedy: !0,
1927
- lookbehind: !0
1928
- },
1929
- {
1930
- pattern: /([^:]|^)(?:\\?\b[a-z_]\w*)+/i,
1931
- alias: [
1932
- "class-name",
1933
- "class-name-fully-qualified"
1934
- ],
1935
- greedy: !0,
1936
- lookbehind: !0,
1937
- inside: { punctuation: /\\/ }
1938
- }
1939
- ],
1940
- constant: t,
1941
- number: i,
1942
- operator: n,
1943
- punctuation: s
1944
- }
1945
- },
1946
- delimiter: { pattern: /^#\[|]$/, alias: "punctuation" }
1947
- }
1948
- }
1949
- }),
1950
- a.hooks.add("before-tokenize", function (e) {
1951
- if (/<\?/.test(e.code)) {
1952
- a.languages["markup-templating"].buildPlaceholders(
1953
- e,
1954
- "php",
1955
- /<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi
1956
- );
1957
- }
1958
- }),
1959
- a.hooks.add("after-tokenize", function (e) {
1960
- a.languages["markup-templating"].tokenizePlaceholders(e, "php");
1961
- });
1962
- })(Prism);
1963
- !(function (p) {
1964
- var a = (p.languages.javadoclike = {
1965
- parameter: {
1966
- pattern: /(^\s*(?:\/{3}|\*|\/\*\*)\s*@(?:param|arg|arguments)\s+)\w+/m,
1967
- lookbehind: !0
1968
- },
1969
- keyword: {
1970
- pattern: /(^\s*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,
1971
- lookbehind: !0
1972
- },
1973
- punctuation: /[{}]/
1974
- });
1975
- Object.defineProperty(a, "addSupport", {
1976
- value: function (a, e) {
1977
- "string" == typeof a && (a = [a]),
1978
- a.forEach(function (a) {
1979
- !(function (a, e) {
1980
- var n = "doc-comment",
1981
- t = p.languages[a];
1982
- if (t) {
1983
- var r = t[n];
1984
- if (!r) {
1985
- var o = {
1986
- "doc-comment": {
1987
- pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,
1988
- lookbehind: !0,
1989
- alias: "comment"
1990
- }
1991
- };
1992
- r = (t = p.languages.insertBefore(
1993
- a,
1994
- "comment",
1995
- o
1996
- ))[n];
1997
- }
1998
- if (
1999
- (r instanceof RegExp &&
2000
- (r = t[n] = { pattern: r }),
2001
- Array.isArray(r))
2002
- )
2003
- for (var i = 0, s = r.length; i < s; i++)
2004
- r[i] instanceof RegExp &&
2005
- (r[i] = { pattern: r[i] }),
2006
- e(r[i]);
2007
- else e(r);
2008
- }
2009
- })(a, function (a) {
2010
- a.inside || (a.inside = {}), (a.inside.rest = e);
2011
- });
2012
- });
2013
- }
2014
- }),
2015
- a.addSupport(["java", "javascript", "php"], a);
2016
- })(Prism);
2017
- !(function (a) {
2018
- var e = /(^(?:\s*(?:\*\s*)*))[^*\s].*$/m,
2019
- n = "(?:[a-zA-Z]\\w+\\s*\\.\\s*)*[A-Z]\\w*(?:\\s*<mem>)?|<mem>".replace(
2020
- /<mem>/g,
2021
- function () {
2022
- return "#\\s*\\w+(?:\\s*\\([^()]*\\))?";
2023
- }
2024
- );
2025
- (a.languages.javadoc = a.languages.extend("javadoclike", {})),
2026
- a.languages.insertBefore("javadoc", "keyword", {
2027
- reference: {
2028
- pattern: RegExp(
2029
- "(@(?:exception|throws|see|link|linkplain|value)\\s+(?:\\*\\s*)?)(?:" +
2030
- n +
2031
- ")"
2032
- ),
2033
- lookbehind: !0,
2034
- inside: {
2035
- function: {
2036
- pattern: /(#\s*)\w+(?=\s*\()/,
2037
- lookbehind: !0
2038
- },
2039
- field: { pattern: /(#\s*)\w+/, lookbehind: !0 },
2040
- namespace: {
2041
- pattern: /\b(?:[a-z]\w*\s*\.\s*)+/,
2042
- inside: { punctuation: /\./ }
2043
- },
2044
- "class-name": /\b[A-Z]\w*/,
2045
- keyword: a.languages.java.keyword,
2046
- punctuation: /[#()[\],.]/
2047
- }
2048
- },
2049
- "class-name": {
2050
- pattern: /(@param\s+)<[A-Z]\w*>/,
2051
- lookbehind: !0,
2052
- inside: { punctuation: /[.<>]/ }
2053
- },
2054
- "code-section": [
2055
- {
2056
- pattern: /(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,
2057
- lookbehind: !0,
2058
- inside: {
2059
- code: {
2060
- pattern: e,
2061
- lookbehind: !0,
2062
- inside: a.languages.java,
2063
- alias: "language-java"
2064
- }
2065
- }
2066
- },
2067
- {
2068
- pattern: /(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,
2069
- lookbehind: !0,
2070
- inside: {
2071
- line: {
2072
- pattern: e,
2073
- lookbehind: !0,
2074
- inside: {
2075
- tag: a.languages.markup.tag,
2076
- entity: a.languages.markup.entity,
2077
- code: {
2078
- pattern: /.+/,
2079
- inside: a.languages.java,
2080
- alias: "language-java"
2081
- }
2082
- }
2083
- }
2084
- }
2085
- }
2086
- ],
2087
- tag: a.languages.markup.tag,
2088
- entity: a.languages.markup.entity
2089
- }),
2090
- a.languages.javadoclike.addSupport("java", a.languages.javadoc);
2091
- })(Prism);
2092
- !(function (e) {
2093
- (e.languages.typescript = e.languages.extend("javascript", {
2094
- "class-name": {
2095
- pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
2096
- lookbehind: !0,
2097
- greedy: !0,
2098
- inside: null
2099
- },
2100
- keyword: /\b(?:abstract|as|asserts|async|await|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|is|keyof|let|module|namespace|new|null|of|package|private|protected|public|readonly|return|require|set|static|super|switch|this|throw|try|type|typeof|undefined|var|void|while|with|yield)\b/,
2101
- builtin: /\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/
2102
- })),
2103
- delete e.languages.typescript.parameter;
2104
- var t = e.languages.extend("typescript", {});
2105
- delete t["class-name"],
2106
- (e.languages.typescript["class-name"].inside = t),
2107
- e.languages.insertBefore("typescript", "function", {
2108
- decorator: {
2109
- pattern: /@[$\w\xA0-\uFFFF]+/,
2110
- inside: {
2111
- at: { pattern: /^@/, alias: "operator" },
2112
- function: /^[\s\S]+/
2113
- }
2114
- },
2115
- "generic-function": {
2116
- pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
2117
- greedy: !0,
2118
- inside: {
2119
- function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,
2120
- generic: {
2121
- pattern: /<[\s\S]+/,
2122
- alias: "class-name",
2123
- inside: t
2124
- }
2125
- }
2126
- }
2127
- }),
2128
- (e.languages.ts = e.languages.typescript);
2129
- })(Prism);
2130
- !(function (e) {
2131
- var a = e.languages.javascript,
2132
- n = "{(?:[^{}]|{(?:[^{}]|{[^{}]*})*})+}",
2133
- s = "(@(?:param|arg|argument|property)\\s+(?:" + n + "\\s+)?)";
2134
- (e.languages.jsdoc = e.languages.extend("javadoclike", {
2135
- parameter: {
2136
- pattern: RegExp(
2137
- s + "(?:(?!\\s)[$\\w\\xA0-\\uFFFF.])+(?=\\s|$)"
2138
- ),
2139
- lookbehind: !0,
2140
- inside: { punctuation: /\./ }
2141
- }
2142
- })),
2143
- e.languages.insertBefore("jsdoc", "keyword", {
2144
- "optional-parameter": {
2145
- pattern: RegExp(
2146
- s +
2147
- "\\[(?:(?!\\s)[$\\w\\xA0-\\uFFFF.])+(?:=[^[\\]]+)?\\](?=\\s|$)"
2148
- ),
2149
- lookbehind: !0,
2150
- inside: {
2151
- parameter: {
2152
- pattern: /(^\[)[$\w\xA0-\uFFFF\.]+/,
2153
- lookbehind: !0,
2154
- inside: { punctuation: /\./ }
2155
- },
2156
- code: {
2157
- pattern: /(=)[\s\S]*(?=\]$)/,
2158
- lookbehind: !0,
2159
- inside: a,
2160
- alias: "language-javascript"
2161
- },
2162
- punctuation: /[=[\]]/
2163
- }
2164
- },
2165
- "class-name": [
2166
- {
2167
- pattern: RegExp(
2168
- "(@(?:augments|extends|class|interface|memberof!?|template|this|typedef)\\s+(?:<TYPE>\\s+)?)[A-Z]\\w*(?:\\.[A-Z]\\w*)*".replace(
2169
- /<TYPE>/g,
2170
- function () {
2171
- return n;
2172
- }
2173
- )
2174
- ),
2175
- lookbehind: !0,
2176
- inside: { punctuation: /\./ }
2177
- },
2178
- {
2179
- pattern: RegExp("(@[a-z]+\\s+)" + n),
2180
- lookbehind: !0,
2181
- inside: {
2182
- string: a.string,
2183
- number: a.number,
2184
- boolean: a.boolean,
2185
- keyword: e.languages.typescript.keyword,
2186
- operator: /=>|\.\.\.|[&|?:*]/,
2187
- punctuation: /[.,;=<>{}()[\]]/
2188
- }
2189
- }
2190
- ],
2191
- example: {
2192
- pattern: /(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,
2193
- lookbehind: !0,
2194
- inside: {
2195
- code: {
2196
- pattern: /^(\s*(?:\*\s*)?)\S.*$/m,
2197
- lookbehind: !0,
2198
- inside: a,
2199
- alias: "language-javascript"
2200
- }
2201
- }
2202
- }
2203
- }),
2204
- e.languages.javadoclike.addSupport("javascript", e.languages.jsdoc);
2205
- })(Prism);
2206
- !(function (a) {
2207
- function e(a, e) {
2208
- return RegExp(
2209
- a.replace(/<ID>/g, function () {
2210
- return "(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*";
2211
- }),
2212
- e
2213
- );
2214
- }
2215
- a.languages.insertBefore("javascript", "function-variable", {
2216
- "method-variable": {
2217
- pattern: RegExp(
2218
- "(\\.\\s*)" +
2219
- a.languages.javascript["function-variable"].pattern
2220
- .source
2221
- ),
2222
- lookbehind: !0,
2223
- alias: [
2224
- "function-variable",
2225
- "method",
2226
- "function",
2227
- "property-access"
2228
- ]
2229
- }
2230
- }),
2231
- a.languages.insertBefore("javascript", "function", {
2232
- method: {
2233
- pattern: RegExp(
2234
- "(\\.\\s*)" + a.languages.javascript.function.source
2235
- ),
2236
- lookbehind: !0,
2237
- alias: ["function", "property-access"]
2238
- }
2239
- }),
2240
- a.languages.insertBefore("javascript", "constant", {
2241
- "known-class-name": [
2242
- {
2243
- pattern: /\b(?:(?:(?:Uint|Int)(?:8|16|32)|Uint8Clamped|Float(?:32|64))?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|(?:Weak)?(?:Set|Map)|WebAssembly)\b/,
2244
- alias: "class-name"
2245
- },
2246
- { pattern: /\b(?:[A-Z]\w*)Error\b/, alias: "class-name" }
2247
- ]
2248
- }),
2249
- a.languages.insertBefore("javascript", "keyword", {
2250
- imports: {
2251
- pattern: e(
2252
- "(\\bimport\\b\\s*)(?:<ID>(?:\\s*,\\s*(?:\\*\\s*as\\s+<ID>|\\{[^{}]*\\}))?|\\*\\s*as\\s+<ID>|\\{[^{}]*\\})(?=\\s*\\bfrom\\b)"
2253
- ),
2254
- lookbehind: !0,
2255
- inside: a.languages.javascript
2256
- },
2257
- exports: {
2258
- pattern: e(
2259
- "(\\bexport\\b\\s*)(?:\\*(?:\\s*as\\s+<ID>)?(?=\\s*\\bfrom\\b)|\\{[^{}]*\\})"
2260
- ),
2261
- lookbehind: !0,
2262
- inside: a.languages.javascript
2263
- }
2264
- }),
2265
- a.languages.javascript.keyword.unshift(
2266
- {
2267
- pattern: /\b(?:as|default|export|from|import)\b/,
2268
- alias: "module"
2269
- },
2270
- {
2271
- pattern: /\b(?:await|break|catch|continue|do|else|for|finally|if|return|switch|throw|try|while|yield)\b/,
2272
- alias: "control-flow"
2273
- },
2274
- { pattern: /\bnull\b/, alias: ["null", "nil"] },
2275
- { pattern: /\bundefined\b/, alias: "nil" }
2276
- ),
2277
- a.languages.insertBefore("javascript", "operator", {
2278
- spread: { pattern: /\.{3}/, alias: "operator" },
2279
- arrow: { pattern: /=>/, alias: "operator" }
2280
- }),
2281
- a.languages.insertBefore("javascript", "punctuation", {
2282
- "property-access": {
2283
- pattern: e("(\\.\\s*)#?<ID>"),
2284
- lookbehind: !0
2285
- },
2286
- "maybe-class-name": {
2287
- pattern: /(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,
2288
- lookbehind: !0
2289
- },
2290
- dom: {
2291
- pattern: /\b(?:document|location|navigator|performance|(?:local|session)Storage|window)\b/,
2292
- alias: "variable"
2293
- },
2294
- console: { pattern: /\bconsole(?=\s*\.)/, alias: "class-name" }
2295
- });
2296
- for (
2297
- var t = [
2298
- "function",
2299
- "function-variable",
2300
- "method",
2301
- "method-variable",
2302
- "property-access"
2303
- ],
2304
- r = 0;
2305
- r < t.length;
2306
- r++
2307
- ) {
2308
- var n = t[r],
2309
- s = a.languages.javascript[n];
2310
- "RegExp" === a.util.type(s) &&
2311
- (s = a.languages.javascript[n] = { pattern: s });
2312
- var o = s.inside || {};
2313
- (s.inside = o)["maybe-class-name"] = /^[A-Z][\s\S]*/;
2314
- }
2315
- })(Prism);
2316
- (Prism.languages.json = {
2317
- property: {
2318
- pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
2319
- lookbehind: !0,
2320
- greedy: !0
2321
- },
2322
- string: {
2323
- pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
2324
- lookbehind: !0,
2325
- greedy: !0
2326
- },
2327
- comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 },
2328
- number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
2329
- punctuation: /[{}[\],]/,
2330
- operator: /:/,
2331
- boolean: /\b(?:true|false)\b/,
2332
- null: { pattern: /\bnull\b/, alias: "keyword" }
2333
- }),
2334
- (Prism.languages.webmanifest = Prism.languages.json);
2335
- !(function (n) {
2336
- var e = /("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;
2337
- n.languages.json5 = n.languages.extend("json", {
2338
- property: [
2339
- { pattern: RegExp(e.source + "(?=\\s*:)"), greedy: !0 },
2340
- {
2341
- pattern: /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,
2342
- alias: "unquoted"
2343
- }
2344
- ],
2345
- string: { pattern: e, greedy: !0 },
2346
- number: /[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/
2347
- });
2348
- })(Prism);
2349
- (Prism.languages.jsonp = Prism.languages.extend("json", {
2350
- punctuation: /[{}[\]();,.]/
2351
- })),
2352
- Prism.languages.insertBefore("jsonp", "punctuation", {
2353
- function: /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/
2354
- });
2355
- Prism.languages.jsstacktrace = {
2356
- "error-message": { pattern: /^\S.*/m, alias: "string" },
2357
- "stack-frame": {
2358
- pattern: /^[ \t]+at[ \t].*/m,
2359
- inside: {
2360
- "not-my-code": {
2361
- pattern: /[ \t]+at[ \t]+(?!\s)(?:node\.js|\<unknown\>|.*(?:node_modules|\(\<anonymous\>\)|\(\<unknown\>|\<anonymous\>$|\(internal\/|\(node\.js)).*/m,
2362
- alias: "comment"
2363
- },
2364
- filename: {
2365
- pattern: /(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,
2366
- lookbehind: !0,
2367
- alias: "url"
2368
- },
2369
- function: {
2370
- pattern: /(at\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,
2371
- lookbehind: !0,
2372
- inside: { punctuation: /\./ }
2373
- },
2374
- punctuation: /[()]/,
2375
- keyword: /\b(?:at|new)\b/,
2376
- alias: {
2377
- pattern: /\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,
2378
- alias: "variable"
2379
- },
2380
- "line-number": {
2381
- pattern: /:[0-9]+(?::[0-9]+)?\b/,
2382
- alias: "number",
2383
- inside: { punctuation: /:/ }
2384
- }
2385
- }
2386
- }
2387
- };
2388
- !(function (u) {
2389
- function n(n) {
2390
- return (
2391
- (n = n.replace(/<inner>/g, function () {
2392
- return "(?:\\\\.|[^\\\\\n\r]|(?:\n|\r\n?)(?!\n|\r\n?))";
2393
- })),
2394
- RegExp("((?:^|[^\\\\])(?:\\\\{2})*)(?:" + n + ")")
2395
- );
2396
- }
2397
- var e = "(?:\\\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\\\|\r\n`])+",
2398
- t = "\\|?__(?:\\|__)+\\|?(?:(?:\n|\r\n?)|(?![^]))".replace(
2399
- /__/g,
2400
- function () {
2401
- return e;
2402
- }
2403
- ),
2404
- a =
2405
- "\\|?[ \t]*:?-{3,}:?[ \t]*(?:\\|[ \t]*:?-{3,}:?[ \t]*)+\\|?(?:\n|\r\n?)";
2406
- (u.languages.markdown = u.languages.extend("markup", {})),
2407
- u.languages.insertBefore("markdown", "prolog", {
2408
- "front-matter-block": {
2409
- pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
2410
- lookbehind: !0,
2411
- greedy: !0,
2412
- inside: {
2413
- punctuation: /^---|---$/,
2414
- "font-matter": {
2415
- pattern: /\S+(?:\s+\S+)*/,
2416
- alias: ["yaml", "language-yaml"],
2417
- inside: u.languages.yaml
2418
- }
2419
- }
2420
- },
2421
- blockquote: {
2422
- pattern: /^>(?:[\t ]*>)*/m,
2423
- alias: "punctuation"
2424
- },
2425
- table: {
2426
- pattern: RegExp("^" + t + a + "(?:" + t + ")*", "m"),
2427
- inside: {
2428
- "table-data-rows": {
2429
- pattern: RegExp("^(" + t + a + ")(?:" + t + ")*$"),
2430
- lookbehind: !0,
2431
- inside: {
2432
- "table-data": {
2433
- pattern: RegExp(e),
2434
- inside: u.languages.markdown
2435
- },
2436
- punctuation: /\|/
2437
- }
2438
- },
2439
- "table-line": {
2440
- pattern: RegExp("^(" + t + ")" + a + "$"),
2441
- lookbehind: !0,
2442
- inside: { punctuation: /\||:?-{3,}:?/ }
2443
- },
2444
- "table-header-row": {
2445
- pattern: RegExp("^" + t + "$"),
2446
- inside: {
2447
- "table-header": {
2448
- pattern: RegExp(e),
2449
- alias: "important",
2450
- inside: u.languages.markdown
2451
- },
2452
- punctuation: /\|/
2453
- }
2454
- }
2455
- }
2456
- },
2457
- code: [
2458
- {
2459
- pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
2460
- lookbehind: !0,
2461
- alias: "keyword"
2462
- },
2463
- { pattern: /``.+?``|`[^`\r\n]+`/, alias: "keyword" },
2464
- {
2465
- pattern: /^```[\s\S]*?^```$/m,
2466
- greedy: !0,
2467
- inside: {
2468
- "code-block": {
2469
- pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
2470
- lookbehind: !0
2471
- },
2472
- "code-language": {
2473
- pattern: /^(```).+/,
2474
- lookbehind: !0
2475
- },
2476
- punctuation: /```/
2477
- }
2478
- }
2479
- ],
2480
- title: [
2481
- {
2482
- pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
2483
- alias: "important",
2484
- inside: { punctuation: /==+$|--+$/ }
2485
- },
2486
- {
2487
- pattern: /(^\s*)#.+/m,
2488
- lookbehind: !0,
2489
- alias: "important",
2490
- inside: { punctuation: /^#+|#+$/ }
2491
- }
2492
- ],
2493
- hr: {
2494
- pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
2495
- lookbehind: !0,
2496
- alias: "punctuation"
2497
- },
2498
- list: {
2499
- pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
2500
- lookbehind: !0,
2501
- alias: "punctuation"
2502
- },
2503
- "url-reference": {
2504
- pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
2505
- inside: {
2506
- variable: { pattern: /^(!?\[)[^\]]+/, lookbehind: !0 },
2507
- string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
2508
- punctuation: /^[\[\]!:]|[<>]/
2509
- },
2510
- alias: "url"
2511
- },
2512
- bold: {
2513
- pattern: n(
2514
- "\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*"
2515
- ),
2516
- lookbehind: !0,
2517
- greedy: !0,
2518
- inside: {
2519
- content: {
2520
- pattern: /(^..)[\s\S]+(?=..$)/,
2521
- lookbehind: !0,
2522
- inside: {}
2523
- },
2524
- punctuation: /\*\*|__/
2525
- }
2526
- },
2527
- italic: {
2528
- pattern: n(
2529
- "\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*"
2530
- ),
2531
- lookbehind: !0,
2532
- greedy: !0,
2533
- inside: {
2534
- content: {
2535
- pattern: /(^.)[\s\S]+(?=.$)/,
2536
- lookbehind: !0,
2537
- inside: {}
2538
- },
2539
- punctuation: /[*_]/
2540
- }
2541
- },
2542
- strike: {
2543
- pattern: n("(~~?)(?:(?!~)<inner>)+?\\2"),
2544
- lookbehind: !0,
2545
- greedy: !0,
2546
- inside: {
2547
- content: {
2548
- pattern: /(^~~?)[\s\S]+(?=\1$)/,
2549
- lookbehind: !0,
2550
- inside: {}
2551
- },
2552
- punctuation: /~~?/
2553
- }
2554
- },
2555
- url: {
2556
- pattern: n(
2557
- '!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \t]?\\[(?:(?!\\])<inner>)+\\])'
2558
- ),
2559
- lookbehind: !0,
2560
- greedy: !0,
2561
- inside: {
2562
- operator: /^!/,
2563
- content: {
2564
- pattern: /(^\[)[^\]]+(?=\])/,
2565
- lookbehind: !0,
2566
- inside: {}
2567
- },
2568
- variable: {
2569
- pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
2570
- lookbehind: !0
2571
- },
2572
- url: { pattern: /(^\]\()[^\s)]+/, lookbehind: !0 },
2573
- string: {
2574
- pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
2575
- lookbehind: !0
2576
- }
2577
- }
2578
- }
2579
- }),
2580
- ["url", "bold", "italic", "strike"].forEach(function (e) {
2581
- ["url", "bold", "italic", "strike"].forEach(function (n) {
2582
- e !== n &&
2583
- (u.languages.markdown[e].inside.content.inside[n] =
2584
- u.languages.markdown[n]);
2585
- });
2586
- }),
2587
- u.hooks.add("after-tokenize", function (n) {
2588
- ("markdown" !== n.language && "md" !== n.language) ||
2589
- !(function n(e) {
2590
- if (e && "string" != typeof e)
2591
- for (var t = 0, a = e.length; t < a; t++) {
2592
- var i = e[t];
2593
- if ("code" === i.type) {
2594
- var r = i.content[1],
2595
- o = i.content[3];
2596
- if (
2597
- r &&
2598
- o &&
2599
- "code-language" === r.type &&
2600
- "code-block" === o.type &&
2601
- "string" == typeof r.content
2602
- ) {
2603
- var l = r.content
2604
- .replace(/\b#/g, "sharp")
2605
- .replace(/\b\+\+/g, "pp"),
2606
- s =
2607
- "language-" +
2608
- (l = (/[a-z][\w-]*/i.exec(
2609
- l
2610
- ) || [""])[0].toLowerCase());
2611
- o.alias
2612
- ? "string" == typeof o.alias
2613
- ? (o.alias = [o.alias, s])
2614
- : o.alias.push(s)
2615
- : (o.alias = [s]);
2616
- }
2617
- } else n(i.content);
2618
- }
2619
- })(n.tokens);
2620
- }),
2621
- u.hooks.add("wrap", function (n) {
2622
- if ("code-block" === n.type) {
2623
- for (var e = "", t = 0, a = n.classes.length; t < a; t++) {
2624
- var i = n.classes[t],
2625
- r = /language-(.+)/.exec(i);
2626
- if (r) {
2627
- e = r[1];
2628
- break;
2629
- }
2630
- }
2631
- var o = u.languages[e];
2632
- if (o) {
2633
- var l = document.createElement("div");
2634
- l.innerHTML = n.content;
2635
- var s = l.textContent;
2636
- n.content = u.highlight(s, o, e);
2637
- } else if (e && "none" !== e && u.plugins.autoloader) {
2638
- var d =
2639
- "md-" +
2640
- new Date().valueOf() +
2641
- "-" +
2642
- Math.floor(1e16 * Math.random());
2643
- (n.attributes.id = d),
2644
- u.plugins.autoloader.loadLanguages(e, function () {
2645
- var n = document.getElementById(d);
2646
- n &&
2647
- (n.innerHTML = u.highlight(
2648
- n.textContent,
2649
- u.languages[e],
2650
- e
2651
- ));
2652
- });
2653
- }
2654
- }
2655
- }),
2656
- (u.languages.md = u.languages.markdown);
2657
- })(Prism);
2658
- !(function (a) {
2659
- var e = "(?:\\b[a-zA-Z]\\w*|[|\\\\[\\]])+";
2660
- (a.languages.phpdoc = a.languages.extend("javadoclike", {
2661
- parameter: {
2662
- pattern: RegExp(
2663
- "(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:" +
2664
- e +
2665
- "\\s+)?)\\$\\w+"
2666
- ),
2667
- lookbehind: !0
2668
- }
2669
- })),
2670
- a.languages.insertBefore("phpdoc", "keyword", {
2671
- "class-name": [
2672
- {
2673
- pattern: RegExp(
2674
- "(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)" +
2675
- e
2676
- ),
2677
- lookbehind: !0,
2678
- inside: {
2679
- keyword: /\b(?:callback|resource|boolean|integer|double|object|string|array|false|float|mixed|bool|null|self|true|void|int)\b/,
2680
- punctuation: /[|\\[\]()]/
2681
- }
2682
- }
2683
- ]
2684
- }),
2685
- a.languages.javadoclike.addSupport("php", a.languages.phpdoc);
2686
- })(Prism);
2687
- Prism.languages.insertBefore("php", "variable", {
2688
- this: /\$this\b/,
2689
- global: /\$(?:_(?:SERVER|GET|POST|FILES|REQUEST|SESSION|ENV|COOKIE)|GLOBALS|HTTP_RAW_POST_DATA|argc|argv|php_errormsg|http_response_header)\b/,
2690
- scope: {
2691
- pattern: /\b[\w\\]+::/,
2692
- inside: { keyword: /static|self|parent/, punctuation: /::|\\/ }
2693
- }
2694
- });
2695
- !(function (E) {
2696
- var A = (E.languages.plsql = E.languages.extend("sql", {
2697
- comment: [/\/\*[\s\S]*?\*\//, /--.*/]
2698
- })),
2699
- T = A.keyword;
2700
- Array.isArray(T) || (T = A.keyword = [T]),
2701
- T.unshift(
2702
- /\b(?:ACCESS|AGENT|AGGREGATE|ARRAY|ARROW|AT|ATTRIBUTE|AUDIT|AUTHID|BFILE_BASE|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BYTE|CALLING|CHAR_BASE|CHARSET(?:FORM|ID)|CLOB_BASE|COLAUTH|COLLECT|CLUSTERS?|COMPILED|COMPRESS|CONSTANT|CONSTRUCTOR|CONTEXT|CRASH|CUSTOMDATUM|DANGLING|DATE_BASE|DEFINE|DETERMINISTIC|DURATION|ELEMENT|EMPTY|EXCEPTIONS?|EXCLUSIVE|EXTERNAL|FINAL|FORALL|FORM|FOUND|GENERAL|HEAP|HIDDEN|IDENTIFIED|IMMEDIATE|INCLUDING|INCREMENT|INDICATOR|INDEXES|INDICES|INFINITE|INITIAL|ISOPEN|INSTANTIABLE|INTERFACE|INVALIDATE|JAVA|LARGE|LEADING|LENGTH|LIBRARY|LIKE[24C]|LIMITED|LONG|LOOP|MAP|MAXEXTENTS|MAXLEN|MEMBER|MINUS|MLSLABEL|MULTISET|NAME|NAN|NATIVE|NEW|NOAUDIT|NOCOMPRESS|NOCOPY|NOTFOUND|NOWAIT|NUMBER(?:_BASE)?|OBJECT|OCI(?:COLL|DATE|DATETIME|DURATION|INTERVAL|LOBLOCATOR|NUMBER|RAW|REF|REFCURSOR|ROWID|STRING|TYPE)|OFFLINE|ONLINE|ONLY|OPAQUE|OPERATOR|ORACLE|ORADATA|ORGANIZATION|ORL(?:ANY|VARY)|OTHERS|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETERS?|PASCAL|PCTFREE|PIPE(?:LINED)?|PRAGMA|PRIOR|PRIVATE|RAISE|RANGE|RAW|RECORD|REF|REFERENCE|REM|REMAINDER|RESULT|RESOURCE|RETURNING|REVERSE|ROW(?:ID|NUM|TYPE)|SAMPLE|SB[124]|SEGMENT|SELF|SEPARATE|SEQUENCE|SHORT|SIZE(?:_T)?|SPARSE|SQL(?:CODE|DATA|NAME|STATE)|STANDARD|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUCCESSFUL|SYNONYM|SYSDATE|TABAUTH|TDO|THE|TIMEZONE_(?:ABBR|HOUR|MINUTE|REGION)|TRAILING|TRANSAC(?:TIONAL)?|TRUSTED|UB[124]|UID|UNDER|UNTRUSTED|VALIDATE|VALIST|VARCHAR2|VARIABLE|VARIANCE|VARRAY|VIEWS|VOID|WHENEVER|WRAPPED|ZONE)\b/i
2703
- );
2704
- var R = A.operator;
2705
- Array.isArray(R) || (R = A.operator = [R]), R.unshift(/:=/);
2706
- })(Prism);
2707
- !(function (a) {
2708
- var e = { pattern: /\\[\\(){}[\]^$+*?|.]/, alias: "escape" },
2709
- n = /\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|c[a-zA-Z]|0[0-7]{0,2}|[123][0-7]{2}|.)/,
2710
- t = "(?:[^\\\\-]|" + n.source + ")",
2711
- s = RegExp(t + "-" + t),
2712
- i = {
2713
- pattern: /(<|')[^<>']+(?=[>']$)/,
2714
- lookbehind: !0,
2715
- alias: "variable"
2716
- };
2717
- a.languages.regex = {
2718
- charset: {
2719
- pattern: /((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,
2720
- lookbehind: !0,
2721
- inside: {
2722
- "charset-negation": {
2723
- pattern: /(^\[)\^/,
2724
- lookbehind: !0,
2725
- alias: "operator"
2726
- },
2727
- "charset-punctuation": {
2728
- pattern: /^\[|\]$/,
2729
- alias: "punctuation"
2730
- },
2731
- range: {
2732
- pattern: s,
2733
- inside: {
2734
- escape: n,
2735
- "range-punctuation": {
2736
- pattern: /-/,
2737
- alias: "operator"
2738
- }
2739
- }
2740
- },
2741
- "special-escape": e,
2742
- charclass: {
2743
- pattern: /\\[wsd]|\\p{[^{}]+}/i,
2744
- alias: "class-name"
2745
- },
2746
- escape: n
2747
- }
2748
- },
2749
- "special-escape": e,
2750
- charclass: {
2751
- pattern: /\.|\\[wsd]|\\p{[^{}]+}/i,
2752
- alias: "class-name"
2753
- },
2754
- backreference: [
2755
- { pattern: /\\(?![123][0-7]{2})[1-9]/, alias: "keyword" },
2756
- {
2757
- pattern: /\\k<[^<>']+>/,
2758
- alias: "keyword",
2759
- inside: { "group-name": i }
2760
- }
2761
- ],
2762
- anchor: { pattern: /[$^]|\\[ABbGZz]/, alias: "function" },
2763
- escape: n,
2764
- group: [
2765
- {
2766
- pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,
2767
- alias: "punctuation",
2768
- inside: { "group-name": i }
2769
- },
2770
- { pattern: /\)/, alias: "punctuation" }
2771
- ],
2772
- quantifier: {
2773
- pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,
2774
- alias: "number"
2775
- },
2776
- alternation: { pattern: /\|/, alias: "keyword" }
2777
- };
2778
- })(Prism);
2779
- !(function (E) {
2780
- var n = /\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;
2781
- (E.languages.typoscript = {
2782
- comment: [
2783
- { pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0 },
2784
- {
2785
- pattern: /(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,
2786
- lookbehind: !0,
2787
- greedy: !0
2788
- },
2789
- { pattern: /(^|[^"'])#.*/, lookbehind: !0, greedy: !0 }
2790
- ],
2791
- function: [
2792
- {
2793
- pattern: /<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,
2794
- inside: {
2795
- string: {
2796
- pattern: /"[^"\r\n]*"|'[^'\r\n]*'/,
2797
- inside: { keyword: n }
2798
- },
2799
- keyword: { pattern: /INCLUDE_TYPOSCRIPT/ }
2800
- }
2801
- },
2802
- {
2803
- pattern: /@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,
2804
- inside: { string: /"[^"\r\n]*"|'[^'\r\n]*'/ }
2805
- }
2806
- ],
2807
- string: {
2808
- pattern: /^([^=]*=[< ]?)(?:(?!]\n).)*/,
2809
- lookbehind: !0,
2810
- inside: {
2811
- function: /{\$.*}/,
2812
- keyword: n,
2813
- number: /^[0-9]+$/,
2814
- punctuation: /[,|:]/
2815
- }
2816
- },
2817
- keyword: n,
2818
- number: {
2819
- pattern: /[0-9]+\s*[.{=]/,
2820
- inside: { operator: /[.{=]/ }
2821
- },
2822
- tag: { pattern: /\.?[\w-\\]+\.?/, inside: { punctuation: /\./ } },
2823
- punctuation: /[{}[\];(),.:|]/,
2824
- operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/
2825
- }),
2826
- (E.languages.tsconfig = E.languages.typoscript);
2827
- })(Prism);
2828
- (Prism.languages.uri = {
2829
- scheme: {
2830
- pattern: /^[a-z][a-z0-9+.-]*:/im,
2831
- greedy: !0,
2832
- inside: { "scheme-delimiter": /:$/ }
2833
- },
2834
- fragment: {
2835
- pattern: /#[\w\-.~!$&'()*+,;=%:@/?]*/,
2836
- inside: { "fragment-delimiter": /^#/ }
2837
- },
2838
- query: {
2839
- pattern: /\?[\w\-.~!$&'()*+,;=%:@/?]*/,
2840
- inside: {
2841
- "query-delimiter": { pattern: /^\?/, greedy: !0 },
2842
- "pair-delimiter": /[&;]/,
2843
- pair: {
2844
- pattern: /^[^=][\s\S]*/,
2845
- inside: {
2846
- key: /^[^=]+/,
2847
- value: { pattern: /(^=)[\s\S]+/, lookbehind: !0 }
2848
- }
2849
- }
2850
- }
2851
- },
2852
- authority: {
2853
- pattern: RegExp(
2854
- "^//(?:[\\w\\-.~!$&'()*+,;=%:]*@)?(?:\\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\\.[\\w\\-.~!$&'()*+,;=]+)\\]|[\\w\\-.~!$&'()*+,;=%]*)(?::\\d*)?",
2855
- "m"
2856
- ),
2857
- inside: {
2858
- "authority-delimiter": /^\/\//,
2859
- "user-info-segment": {
2860
- pattern: /^[\w\-.~!$&'()*+,;=%:]*@/,
2861
- inside: {
2862
- "user-info-delimiter": /@$/,
2863
- "user-info": /^[\w\-.~!$&'()*+,;=%:]+/
2864
- }
2865
- },
2866
- "port-segment": {
2867
- pattern: /:\d*$/,
2868
- inside: { "port-delimiter": /^:/, port: /^\d+/ }
2869
- },
2870
- host: {
2871
- pattern: /[\s\S]+/,
2872
- inside: {
2873
- "ip-literal": {
2874
- pattern: /^\[[\s\S]+\]$/,
2875
- inside: {
2876
- "ip-literal-delimiter": /^\[|\]$/,
2877
- "ipv-future": /^v[\s\S]+/,
2878
- "ipv6-address": /^[\s\S]+/
2879
- }
2880
- },
2881
- "ipv4-address": /^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]{0,2})$/
2882
- }
2883
- }
2884
- }
2885
- },
2886
- path: {
2887
- pattern: /^[\w\-.~!$&'()*+,;=%:@/]+/m,
2888
- inside: { "path-separator": /\// }
2889
- }
2890
- }),
2891
- (Prism.languages.url = Prism.languages.uri);
2892
- Prism.languages.vbnet = Prism.languages.extend("basic", {
2893
- comment: [
2894
- { pattern: /(?:!|REM\b).+/i, inside: { keyword: /^REM/i } },
2895
- { pattern: /(^|[^\\:])'.*/, lookbehind: !0, greedy: !0 }
2896
- ],
2897
- string: {
2898
- pattern: /(^|[^"])"(?:""|[^"])*"(?!")/i,
2899
- lookbehind: !0,
2900
- greedy: !0
2901
- },
2902
- keyword: /(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDEC|CDBL|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEFAULT|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LINE INPUT|LET|LIB|LIKE|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPERATOR|OPEN|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHORT|SINGLE|SHELL|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SYNCLOCK|SWAP|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,
2903
- punctuation: /[,;:(){}]/
2904
- });
2905
- !(function () {
2906
- if ("undefined" != typeof Prism && "undefined" != typeof document) {
2907
- var o = "line-numbers",
2908
- a = /\n(?!$)/g,
2909
- e = (Prism.plugins.lineNumbers = {
2910
- getLine: function (e, n) {
2911
- if ("PRE" === e.tagName && e.classList.contains(o)) {
2912
- var t = e.querySelector(".line-numbers-rows");
2913
- if (t) {
2914
- var i =
2915
- parseInt(
2916
- e.getAttribute("data-start"),
2917
- 10
2918
- ) || 1,
2919
- r = i + (t.children.length - 1);
2920
- n < i && (n = i), r < n && (n = r);
2921
- var s = n - i;
2922
- return t.children[s];
2923
- }
2924
- }
2925
- },
2926
- resize: function (e) {
2927
- u([e]);
2928
- },
2929
- assumeViewportIndependence: !0
2930
- }),
2931
- t = function (e) {
2932
- return e
2933
- ? window.getComputedStyle
2934
- ? getComputedStyle(e)
2935
- : e.currentStyle || null
2936
- : null;
2937
- },
2938
- n = void 0;
2939
- window.addEventListener("resize", function () {
2940
- (e.assumeViewportIndependence && n === window.innerWidth) ||
2941
- ((n = window.innerWidth),
2942
- u(
2943
- Array.prototype.slice.call(
2944
- document.querySelectorAll("pre." + o)
2945
- )
2946
- ));
2947
- }),
2948
- Prism.hooks.add("complete", function (e) {
2949
- if (e.code) {
2950
- var n = e.element,
2951
- t = n.parentNode;
2952
- if (
2953
- t &&
2954
- /pre/i.test(t.nodeName) &&
2955
- !n.querySelector(".line-numbers-rows") &&
2956
- Prism.util.isActive(n, o)
2957
- ) {
2958
- n.classList.remove(o), t.classList.add(o);
2959
- var i,
2960
- r = e.code.match(a),
2961
- s = r ? r.length + 1 : 1,
2962
- l = new Array(s + 1).join("<span></span>");
2963
- (i = document.createElement("span")).setAttribute(
2964
- "aria-hidden",
2965
- "true"
2966
- ),
2967
- (i.className = "line-numbers-rows"),
2968
- (i.innerHTML = l),
2969
- t.hasAttribute("data-start") &&
2970
- (t.style.counterReset =
2971
- "linenumber " +
2972
- (parseInt(
2973
- t.getAttribute("data-start"),
2974
- 10
2975
- ) -
2976
- 1)),
2977
- e.element.appendChild(i),
2978
- u([t]),
2979
- Prism.hooks.run("line-numbers", e);
2980
- }
2981
- }
2982
- }),
2983
- Prism.hooks.add("line-numbers", function (e) {
2984
- (e.plugins = e.plugins || {}), (e.plugins.lineNumbers = !0);
2985
- });
2986
- }
2987
- function u(e) {
2988
- if (
2989
- 0 !=
2990
- (e = e.filter(function (e) {
2991
- var n = t(e)["white-space"];
2992
- return "pre-wrap" === n || "pre-line" === n;
2993
- })).length
2994
- ) {
2995
- var n = e
2996
- .map(function (e) {
2997
- var n = e.querySelector("code"),
2998
- t = e.querySelector(".line-numbers-rows");
2999
- if (n && t) {
3000
- var i = e.querySelector(".line-numbers-sizer"),
3001
- r = n.textContent.split(a);
3002
- i ||
3003
- (((i = document.createElement(
3004
- "span"
3005
- )).className = "line-numbers-sizer"),
3006
- n.appendChild(i)),
3007
- (i.innerHTML = "0"),
3008
- (i.style.display = "block");
3009
- var s = i.getBoundingClientRect().height;
3010
- return (
3011
- (i.innerHTML = ""),
3012
- {
3013
- element: e,
3014
- lines: r,
3015
- lineHeights: [],
3016
- oneLinerHeight: s,
3017
- sizer: i
3018
- }
3019
- );
3020
- }
3021
- })
3022
- .filter(Boolean);
3023
- n.forEach(function (e) {
3024
- var i = e.sizer,
3025
- n = e.lines,
3026
- r = e.lineHeights,
3027
- s = e.oneLinerHeight;
3028
- (r[n.length - 1] = void 0),
3029
- n.forEach(function (e, n) {
3030
- if (e && 1 < e.length) {
3031
- var t = i.appendChild(
3032
- document.createElement("span")
3033
- );
3034
- (t.style.display = "block"),
3035
- (t.textContent = e);
3036
- } else r[n] = s;
3037
- });
3038
- }),
3039
- n.forEach(function (e) {
3040
- for (
3041
- var n = e.sizer, t = e.lineHeights, i = 0, r = 0;
3042
- r < t.length;
3043
- r++
3044
- )
3045
- void 0 === t[r] &&
3046
- (t[r] = n.children[
3047
- i++
3048
- ].getBoundingClientRect().height);
3049
- }),
3050
- n.forEach(function (e) {
3051
- var n = e.sizer,
3052
- t = e.element.querySelector(".line-numbers-rows");
3053
- (n.style.display = "none"),
3054
- (n.innerHTML = ""),
3055
- e.lineHeights.forEach(function (e, n) {
3056
- t.children[n].style.height = e + "px";
3057
- });
3058
- });
3059
- }
3060
- }
3061
- })();
3062
- "undefined" != typeof Prism &&
3063
- "undefined" != typeof document &&
3064
- (Element.prototype.matches ||
3065
- (Element.prototype.matches =
3066
- Element.prototype.msMatchesSelector ||
3067
- Element.prototype.webkitMatchesSelector),
3068
- (Prism.plugins.UnescapedMarkup = !0),
3069
- Prism.hooks.add("before-highlightall", function (e) {
3070
- e.selector +=
3071
- ', [class*="lang-"] script[type="text/plain"], [class*="language-"] script[type="text/plain"], script[type="text/plain"][class*="lang-"], script[type="text/plain"][class*="language-"]';
3072
- }),
3073
- Prism.hooks.add("before-sanity-check", function (e) {
3074
- var t = e.element;
3075
- if (t.matches('script[type="text/plain"]')) {
3076
- var a = document.createElement("code"),
3077
- c = document.createElement("pre");
3078
- c.className = a.className = t.className;
3079
- var n = t.dataset;
3080
- return (
3081
- Object.keys(n || {}).forEach(function (e) {
3082
- Object.prototype.hasOwnProperty.call(n, e) &&
3083
- (c.dataset[e] = n[e]);
3084
- }),
3085
- (a.textContent = e.code = e.code.replace(
3086
- /&lt;\/script(?:>|&gt;)/gi,
3087
- "</script>"
3088
- )),
3089
- c.appendChild(a),
3090
- t.parentNode.replaceChild(c, t),
3091
- void (e.element = a)
3092
- );
3093
- }
3094
- if (!e.code) {
3095
- var o = t.childNodes;
3096
- 1 === o.length &&
3097
- "#comment" == o[0].nodeName &&
3098
- (t.textContent = e.code = o[0].textContent);
3099
- }
3100
- }));
3101
- !(function () {
3102
- if ("undefined" != typeof Prism && "undefined" != typeof document) {
3103
- var d = { "(": ")", "[": "]", "{": "}" },
3104
- u = {
3105
- "(": "brace-round",
3106
- "[": "brace-square",
3107
- "{": "brace-curly"
3108
- },
3109
- f = { "${": "{" },
3110
- h = 0,
3111
- n = /^(pair-\d+-)(open|close)$/;
3112
- Prism.hooks.add("complete", function (e) {
3113
- var t = e.element,
3114
- n = t.parentElement;
3115
- if (n && "PRE" == n.tagName) {
3116
- var c = [];
3117
- if (
3118
- (Prism.util.isActive(t, "match-braces") &&
3119
- c.push("(", "[", "{"),
3120
- 0 != c.length)
3121
- ) {
3122
- n.__listenerAdded ||
3123
- (n.addEventListener("mousedown", function () {
3124
- var e = n.querySelector("code");
3125
- Array.prototype.slice
3126
- .call(e.querySelectorAll(".brace-selected"))
3127
- .forEach(function (e) {
3128
- e.classList.remove("brace-selected");
3129
- });
3130
- }),
3131
- Object.defineProperty(n, "__listenerAdded", {
3132
- value: !0
3133
- }));
3134
- var o = Array.prototype.slice.call(
3135
- t.querySelectorAll("span.token.punctuation")
3136
- ),
3137
- l = [];
3138
- c.forEach(function (e) {
3139
- for (
3140
- var t = d[e], n = u[e], c = [], r = [], i = 0;
3141
- i < o.length;
3142
- i++
3143
- ) {
3144
- var s = o[i];
3145
- if (0 == s.childElementCount) {
3146
- var a = s.textContent;
3147
- (a = f[a] || a) === e
3148
- ? (l.push({
3149
- index: i,
3150
- open: !0,
3151
- element: s
3152
- }),
3153
- s.classList.add(n),
3154
- s.classList.add("brace-open"),
3155
- r.push(i))
3156
- : a === t &&
3157
- (l.push({
3158
- index: i,
3159
- open: !1,
3160
- element: s
3161
- }),
3162
- s.classList.add(n),
3163
- s.classList.add("brace-close"),
3164
- r.length && c.push([i, r.pop()]));
3165
- }
3166
- }
3167
- c.forEach(function (e) {
3168
- var t = "pair-" + h++ + "-",
3169
- n = o[e[0]],
3170
- c = o[e[1]];
3171
- (n.id = t + "open"),
3172
- (c.id = t + "close"),
3173
- [n, c].forEach(function (e) {
3174
- e.addEventListener("mouseenter", p),
3175
- e.addEventListener("mouseleave", v),
3176
- e.addEventListener("click", m);
3177
- });
3178
- });
3179
- });
3180
- var r = 0;
3181
- l.sort(function (e, t) {
3182
- return e.index - t.index;
3183
- }),
3184
- l.forEach(function (e) {
3185
- e.open
3186
- ? (e.element.classList.add(
3187
- "brace-level-" + ((r % 12) + 1)
3188
- ),
3189
- r++)
3190
- : ((r = Math.max(0, r - 1)),
3191
- e.element.classList.add(
3192
- "brace-level-" + ((r % 12) + 1)
3193
- ));
3194
- });
3195
- }
3196
- }
3197
- });
3198
- }
3199
- function e(e) {
3200
- var t = n.exec(e.id);
3201
- return document.querySelector(
3202
- "#" + t[1] + ("open" == t[2] ? "close" : "open")
3203
- );
3204
- }
3205
- function p() {
3206
- Prism.util.isActive(this, "brace-hover", !0) &&
3207
- [this, e(this)].forEach(function (e) {
3208
- e.classList.add("brace-hover");
3209
- });
3210
- }
3211
- function v() {
3212
- [this, e(this)].forEach(function (e) {
3213
- e.classList.remove("brace-hover");
3214
- });
3215
- }
3216
- function m() {
3217
- Prism.util.isActive(this, "brace-select", !0) &&
3218
- [this, e(this)].forEach(function (e) {
3219
- e.classList.add("brace-selected");
3220
- });
3221
- }
3222
- })();
3223
- });
3224
-
3225
- export default prism;