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