file-viewer3 1.0.8 → 1.0.26
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/LICENSE +160 -0
- package/README.en.md +390 -0
- package/README.md +306 -89
- package/dist/components/3MFLoader.js +527 -0
- package/dist/components/AMFLoader.js +188 -0
- package/dist/components/ArchiveViewer.js +526 -0
- package/dist/components/AudioViewer.js +66 -0
- package/dist/components/CadViewer.js +9040 -0
- package/dist/components/CodeViewer.js +151 -0
- package/dist/components/ColladaLoader.js +2282 -0
- package/dist/components/DrawingViewer.js +295 -0
- package/dist/components/EdaViewer.js +630 -0
- package/dist/components/EmailViewer.js +276 -0
- package/dist/components/EpubViewer.js +172 -0
- package/dist/components/FBXLoader.js +1574 -0
- package/dist/components/GLTFLoader.js +1383 -0
- package/dist/components/ImageViewer.js +1516 -1895
- package/dist/components/KMZLoader.js +45 -0
- package/dist/components/MarkdownViewer.js +1456 -1557
- package/dist/components/ModelViewer.js +797 -0
- package/dist/components/OBJLoader.js +287 -0
- package/dist/components/OfdViewer.js +133 -0
- package/dist/components/PCDLoader.js +141 -0
- package/dist/components/PLYLoader.js +305 -0
- package/dist/components/PdfView.js +27662 -21655
- package/dist/components/PptxRender.js +11170 -21118
- package/dist/components/STLLoader.js +83 -0
- package/dist/components/TDSLoader.js +228 -0
- package/dist/components/TypstViewer.js +1697 -0
- package/dist/components/USDLoader.js +2526 -0
- package/dist/components/UmdViewer.js +1873 -0
- package/dist/components/VRMLLoader.js +6422 -0
- package/dist/components/VTKLoader.js +337 -0
- package/dist/components/XYZLoader.js +30 -0
- package/dist/components/XlsxTable.js +7871 -69873
- package/dist/components/__vite-browser-external.js +7 -0
- package/dist/components/_plugin-vue_export-helper.js +8 -0
- package/dist/components/ar-SA-G6X2FPQ2.js +523 -0
- package/dist/components/arc.js +79 -0
- package/dist/components/architecture-7EHR7CIX.js +3 -0
- package/dist/components/architectureDiagram-3BPJPVTR.js +4096 -0
- package/dist/components/archive.js +24 -0
- package/dist/components/asyncToGenerator.js +29 -0
- package/dist/components/audio.js +19 -0
- package/dist/components/az-AZ-76LH7QW2.js +523 -0
- package/dist/components/bash.js +169 -0
- package/dist/components/bg-BG-XCXSNQG7.js +523 -0
- package/dist/components/blockDiagram-GPEHLZMM.js +3357 -0
- package/dist/components/bn-BD-2XOGV67Q.js +523 -0
- package/dist/components/c4Diagram-AAUBKEIU.js +2957 -0
- package/dist/components/ca-ES-6MX7JW3Y.js +523 -0
- package/dist/components/cad.js +23 -0
- package/dist/components/cfb.js +1174 -0
- package/dist/components/channel.js +5 -0
- package/dist/components/chunk-2J33WTMH.js +26 -0
- package/dist/components/chunk-3OPIFGDE.js +4167 -0
- package/dist/components/chunk-4BX2VUAB.js +19 -0
- package/dist/components/chunk-55IACEB6.js +9 -0
- package/dist/components/chunk-5ZQYHXKU.js +669 -0
- package/dist/components/chunk-6U3AYISY.js +624 -0
- package/dist/components/chunk-727SXJPM.js +3356 -0
- package/dist/components/chunk-AGHRB4JF.js +324 -0
- package/dist/components/chunk-AQP2D5EJ.js +2055 -0
- package/dist/components/chunk-BSJP7CBP.js +83 -0
- package/dist/components/chunk-CSCIHK7Q.js +3500 -0
- package/dist/components/chunk-EIO257PC.js +1836 -0
- package/dist/components/chunk-FMBD7UC4.js +5 -0
- package/dist/components/chunk-K2UTITRG.js +17627 -0
- package/dist/components/chunk-KSCS5N6A.js +572 -0
- package/dist/components/chunk-L5ZTLDWV.js +40 -0
- package/dist/components/chunk-LZXEDZCA.js +60 -0
- package/dist/components/chunk-ND2GUHAM.js +61 -0
- package/dist/components/chunk-NNHCCRGN.js +20425 -0
- package/dist/components/chunk-NZK2D7GU.js +68 -0
- package/dist/components/chunk-O5CBEL6O.js +1894 -0
- package/dist/components/chunk-QZHKN3VN.js +12 -0
- package/dist/components/chunk-SRAX5OIU.js +22 -0
- package/dist/components/chunk-WU5MYG2G.js +14 -0
- package/dist/components/chunk-XPW4576I.js +1146 -0
- package/dist/components/chunk-Z3N5DIM6.js +59 -0
- package/dist/components/chunk-ZUYEQ4TG.js +22 -0
- package/dist/components/chunk.js +23 -0
- package/dist/components/classDiagram-4FO5ZUOK.js +29 -0
- package/dist/components/classDiagram-v2-Q7XG4LA2.js +29 -0
- package/dist/components/compiler.js +2 -0
- package/dist/components/core.js +845 -0
- package/dist/components/cose-bilkent-S5V4N54A.js +2268 -0
- package/dist/components/cpp.js +225 -0
- package/dist/components/cs-CZ-2BRQDIVT.js +523 -0
- package/dist/components/csharp.js +260 -0
- package/dist/components/css.js +140 -0
- package/dist/components/cytoscape.esm.js +18114 -0
- package/dist/components/da-DK-5WZEPLOC.js +523 -0
- package/dist/components/dagre-BM42HDAG.js +325 -0
- package/dist/components/dagre.js +1936 -0
- package/dist/components/de-DE-XR44H4JA.js +523 -0
- package/dist/components/defaultLocale.js +201 -0
- package/dist/components/defineProperty.js +50 -0
- package/dist/components/diagram-2AECGRRQ.js +229 -0
- package/dist/components/diagram-5GNKFQAL.js +108 -0
- package/dist/components/diagram-KO2AKTUF.js +443 -0
- package/dist/components/diagram-LMA3HP47.js +139 -0
- package/dist/components/diagram-OG6HWLK6.js +541 -0
- package/dist/components/diff.js +39 -0
- package/dist/components/directory-open-01563666.js +26 -0
- package/dist/components/directory-open-4ed118d0.js +83 -0
- package/dist/components/dist.js +50 -0
- package/dist/components/dist2.js +3291 -0
- package/dist/components/dist3.js +1593 -0
- package/dist/components/documentSearch.js +378 -0
- package/dist/components/docx-preview.js +3113 -0
- package/dist/components/drawing.js +19 -0
- package/dist/components/ebook.js +16 -0
- package/dist/components/eda.js +20 -0
- package/dist/components/el-GR-BZB4AONW.js +523 -0
- package/dist/components/email.js +21 -0
- package/dist/components/en-B4ZKOASM.js +3 -0
- package/dist/components/erDiagram-TEJ5UH35.js +1719 -0
- package/dist/components/es-ES-U4NZUMDT.js +523 -0
- package/dist/components/eu-ES-A7QVB2H4.js +523 -0
- package/dist/components/eventmodeling-FCH6USID.js +3 -0
- package/dist/components/fa-IR-HGAKTJCU.js +523 -0
- package/dist/components/fflate.module.js +323 -0
- package/dist/components/fi-FI-Z5N7JZ37.js +523 -0
- package/dist/components/file-open-002ab408.js +38 -0
- package/dist/components/file-open-7c801643.js +24 -0
- package/dist/components/file-save-3189631c.js +40 -0
- package/dist/components/file-save-745eba88.js +36 -0
- package/dist/components/flowDiagram-I6XJVG4X.js +4181 -0
- package/dist/components/fr-FR-RHASNOE6.js +523 -0
- package/dist/components/ganttDiagram-6RSMTGT7.js +2182 -0
- package/dist/components/gitGraph-WXDBUCRP.js +3 -0
- package/dist/components/gitGraphDiagram-PVQCEYII.js +788 -0
- package/dist/components/gl-ES-HMX3MZ6V.js +523 -0
- package/dist/components/global-compiler.js +23 -0
- package/dist/components/global-renderer.js +23 -0
- package/dist/components/go.js +140 -0
- package/dist/components/graphlib.js +1267 -0
- package/dist/components/he-IL-6SHJWFNN.js +523 -0
- package/dist/components/hi-IN-IWLTKZ5I.js +523 -0
- package/dist/components/hu-HU-A5ZG7DT2.js +523 -0
- package/dist/components/id-ID-SAP4L64H.js +523 -0
- package/dist/components/image-GAAHSSAO.js +3 -0
- package/dist/components/image-blob-reduce.esm.js +1429 -0
- package/dist/components/image.js +17 -0
- package/dist/components/info-J43DQDTF.js +3 -0
- package/dist/components/infoDiagram-5YYISTIA.js +26 -0
- package/dist/components/ini.js +88 -0
- package/dist/components/init.js +15 -0
- package/dist/components/ishikawaDiagram-YF4QCWOH.js +718 -0
- package/dist/components/it-IT-JPQ66NNP.js +523 -0
- package/dist/components/ja-JP-DBVTYXUO.js +523 -0
- package/dist/components/java.js +169 -0
- package/dist/components/javascript.js +436 -0
- package/dist/components/journeyDiagram-JHISSGLW.js +885 -0
- package/dist/components/json.js +36 -0
- package/dist/components/jszip.min.js +3033 -0
- package/dist/components/kaa-6HZHGXH3.js +523 -0
- package/dist/components/kab-KAB-ZGHBKWFO.js +523 -0
- package/dist/components/kanban-definition-UN3LZRKU.js +986 -0
- package/dist/components/katex.js +21979 -0
- package/dist/components/kk-KZ-P5N5QNE5.js +523 -0
- package/dist/components/km-KH-HSX4SM5Z.js +523 -0
- package/dist/components/ko-KR-MTYHY66A.js +523 -0
- package/dist/components/ku-TR-6OUDTVRD.js +523 -0
- package/dist/components/lib.js +4877 -0
- package/dist/components/libarchive.js +360 -0
- package/dist/components/linear.js +289 -0
- package/dist/components/lt-LT-XHIRWOB4.js +523 -0
- package/dist/components/lv-LV-5QDEKY6T.js +523 -0
- package/dist/components/markdown.js +181 -0
- package/dist/components/md.js +17 -0
- package/dist/components/mermaid-parser.core.js +328 -0
- package/dist/components/mindmap-definition-RKZ34NQL.js +1016 -0
- package/dist/components/model.js +21 -0
- package/dist/components/mp4.js +12 -0
- package/dist/components/mr-IN-CRQNXWMA.js +523 -0
- package/dist/components/my-MM-5M5IBNSE.js +523 -0
- package/dist/components/nb-NO-T6EIAALU.js +523 -0
- package/dist/components/nestedRender.js +158 -0
- package/dist/components/nl-NL-IS3SIHDZ.js +523 -0
- package/dist/components/nn-NO-6E72VCQL.js +523 -0
- package/dist/components/objectSpread2.js +29 -0
- package/dist/components/objectWithoutProperties.js +28 -0
- package/dist/components/oc-FR-POXYY2M6.js +523 -0
- package/dist/components/ofd.js +5261 -0
- package/dist/components/ofd2.js +16 -0
- package/dist/components/ordinal.js +65 -0
- package/dist/components/pa-IN-N4M65BXN.js +523 -0
- package/dist/components/packet-YPE3B663.js +3 -0
- package/dist/components/pdf.js +24 -0
- package/dist/components/percentages-BXMCSKIN.js +3 -0
- package/dist/components/php.js +294 -0
- package/dist/components/pica.js +1009 -0
- package/dist/components/pie-LRSECV5Y.js +3 -0
- package/dist/components/pie.js +47 -0
- package/dist/components/pieDiagram-4H26LBE5.js +130 -0
- package/dist/components/pl-PL-T2D74RX3.js +523 -0
- package/dist/components/postal-mime.js +3146 -0
- package/dist/components/pptx.js +15 -0
- package/dist/components/printLayout.js +42 -0
- package/dist/components/prod.js +21770 -0
- package/dist/components/pt-BR-5N22H2LF.js +523 -0
- package/dist/components/pt-PT-UZXXM6DQ.js +523 -0
- package/dist/components/python.js +238 -0
- package/dist/components/quadrantDiagram-W4KKPZXB.js +1988 -0
- package/dist/components/radar-GUYGQ44K.js +3 -0
- package/dist/components/renderer.js +2 -0
- package/dist/components/requirementDiagram-4Y6WPE33.js +2230 -0
- package/dist/components/ro-RO-JPDTUUEW.js +523 -0
- package/dist/components/rough.esm.js +1355 -0
- package/dist/components/roundRect.js +90 -0
- package/dist/components/ru-RU-B4JR7IUQ.js +523 -0
- package/dist/components/rust.js +169 -0
- package/dist/components/sankeyDiagram-5OEKKPKP.js +972 -0
- package/dist/components/sequenceDiagram-3UESZ5HK.js +4255 -0
- package/dist/components/shared.js +175 -0
- package/dist/components/shared2.js +4 -0
- package/dist/components/si-LK-N5RQ5JYF.js +523 -0
- package/dist/components/sk-SK-C5VTKIMK.js +523 -0
- package/dist/components/sl-SI-NN7IZMDC.js +523 -0
- package/dist/components/sourceLoading.js +134 -0
- package/dist/components/sql.js +118 -0
- package/dist/components/src.js +2664 -0
- package/dist/components/src2.js +10722 -0
- package/dist/components/stateDiagram-AJRCARHV.js +217 -0
- package/dist/components/stateDiagram-v2-BHNVJYJU.js +27 -0
- package/dist/components/subset-shared.chunk.js +3 -0
- package/dist/components/subset-worker.chunk.js +21 -0
- package/dist/components/sv-SE-XGPEYMSR.js +523 -0
- package/dist/components/ta-IN-2NMHFXQM.js +523 -0
- package/dist/components/text.js +20 -0
- package/dist/components/th-TH-HPSO5L25.js +523 -0
- package/dist/components/three.module.js +13134 -0
- package/dist/components/time.js +910 -0
- package/dist/components/timeline-definition-PNZ67QCA.js +1084 -0
- package/dist/components/tr-TR-DEFEU3FU.js +523 -0
- package/dist/components/treeView-BLDUP644.js +3 -0
- package/dist/components/treemap-LRROVOQU.js +3 -0
- package/dist/components/typescript.js +521 -0
- package/dist/components/typst.js +25 -0
- package/dist/components/uk-UA-QMV73CPH.js +523 -0
- package/dist/components/umd.js +16 -0
- package/dist/components/use.js +422 -0
- package/dist/components/util.js +49 -0
- package/dist/components/vennDiagram-CIIHVFJN.js +1880 -0
- package/dist/components/vi-VN-M7AON7JQ.js +523 -0
- package/dist/components/viewerZoom.js +92 -0
- package/dist/components/wardley-L42UT6IY.js +3 -0
- package/dist/components/wardleyDiagram-YWT4CUSO.js +656 -0
- package/dist/components/wasm-pack-shim.js +1711 -0
- package/dist/components/wasm-pack-shim2.js +934 -0
- package/dist/components/wasm.js +97 -0
- package/dist/components/word.js +3055 -0
- package/dist/components/worker-ref.js +15 -20
- package/dist/components/xlsx.js +21 -0
- package/dist/components/xml.js +166 -0
- package/dist/components/xychartDiagram-2RQKCTM6.js +2015 -0
- package/dist/components/yaml.js +144 -0
- package/dist/components/zh-CN-LNUGB5OW.js +523 -0
- package/dist/components/zh-HK-E62DVLB3.js +523 -0
- package/dist/components/zh-TW-RAJ6MFWO.js +523 -0
- package/dist/file-viewer3.css +2 -0
- package/dist/index.mjs +3292 -5
- package/dist/src/App.vue.d.ts +3 -0
- package/dist/src/compare/CompareApp.vue.d.ts +3 -0
- package/dist/src/compare/main.d.ts +0 -0
- package/dist/src/compare/useSynchronizedScroll.d.ts +7 -0
- package/dist/src/components/HelloWorld.vue.d.ts +3 -0
- package/dist/src/components/utils.d.ts +4 -0
- package/dist/src/main.d.ts +0 -0
- package/dist/src/package/common/printCapability.d.ts +27 -0
- package/dist/src/package/common/printLayout.d.ts +16 -0
- package/dist/src/package/common/sourceLoading.d.ts +10 -0
- package/dist/src/package/common/type.d.ts +522 -8
- package/dist/src/package/common/worker-ref.d.ts +1 -1
- package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +74 -24
- package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +9 -0
- package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +29 -0
- package/dist/src/package/components/FileViewer/hooks/useViewerExport.d.ts +21 -0
- package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +8 -0
- package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +34 -0
- package/dist/src/package/components/FileViewer/index.d.ts +1 -1
- package/dist/src/package/components/FileViewer/util.d.ts +2 -1
- package/dist/src/package/index.d.ts +14 -4
- package/dist/src/package/use/documentLocation.d.ts +15 -0
- package/dist/src/package/use/documentSearch.d.ts +234 -0
- package/dist/src/package/use/index.d.ts +4 -0
- package/dist/src/package/use/loading.d.ts +33 -0
- package/dist/src/package/use/viewerZoom.d.ts +42 -0
- package/dist/src/package/use/worker.d.ts +2 -2
- package/dist/src/package/vendors/archive/ArchiveViewer.vue.d.ts +9 -0
- package/dist/src/package/vendors/archive/cache.d.ts +10 -0
- package/dist/src/package/vendors/archive/fallback.d.ts +9 -0
- package/dist/src/package/vendors/archive/index.d.ts +3 -0
- package/dist/src/package/vendors/archive/shared.d.ts +24 -0
- package/dist/src/package/vendors/audio/AudioViewer.vue.d.ts +7 -0
- package/dist/src/package/vendors/audio/index.d.ts +7 -0
- package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +9 -0
- package/dist/src/package/vendors/cad/index.d.ts +8 -0
- package/dist/src/package/vendors/drawing/DrawingViewer.vue.d.ts +15 -0
- package/dist/src/package/vendors/drawing/index.d.ts +7 -0
- package/dist/src/package/vendors/ebook/EpubViewer.vue.d.ts +6 -0
- package/dist/src/package/vendors/ebook/index.d.ts +7 -0
- package/dist/src/package/vendors/eda/EdaViewer.vue.d.ts +8 -0
- package/dist/src/package/vendors/eda/index.d.ts +2 -0
- package/dist/src/package/vendors/eda/parser.d.ts +77 -0
- package/dist/src/package/vendors/email/EmailViewer.vue.d.ts +10 -0
- package/dist/src/package/vendors/email/index.d.ts +2 -0
- package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +6 -13
- package/dist/src/package/vendors/image/index.d.ts +1 -1
- package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +6 -13
- package/dist/src/package/vendors/md/index.d.ts +1 -1
- package/dist/src/package/vendors/model/ModelViewer.vue.d.ts +8 -0
- package/dist/src/package/vendors/model/index.d.ts +3 -0
- package/dist/src/package/vendors/model/shared.d.ts +1 -0
- package/dist/src/package/vendors/nestedRender.d.ts +10 -0
- package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +6 -0
- package/dist/src/package/vendors/ofd/index.d.ts +7 -0
- package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +10 -13
- package/dist/src/package/vendors/pdf/index.d.ts +2 -1
- package/dist/src/package/vendors/pdf/worker/pdf.worker.d.ts +0 -0
- package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +9 -81
- package/dist/src/package/vendors/pptx/index.d.ts +1 -1
- package/dist/src/package/vendors/renders.d.ts +1 -1
- package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +7 -13
- package/dist/src/package/vendors/text/index.d.ts +6 -2
- package/dist/src/package/vendors/typst/TypstViewer.vue.d.ts +15 -0
- package/dist/src/package/vendors/typst/index.d.ts +8 -0
- package/dist/src/package/vendors/umd/UmdViewer.vue.d.ts +6 -0
- package/dist/src/package/vendors/umd/index.d.ts +7 -0
- package/dist/src/package/vendors/umd/parser.d.ts +30 -0
- package/dist/src/package/vendors/word/doc.d.ts +5 -0
- package/dist/src/package/vendors/word/docx.d.ts +5 -0
- package/dist/src/package/vendors/word/docx.worker.d.ts +1 -0
- package/dist/src/package/vendors/word/index.d.ts +3 -0
- package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +80 -0
- package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +25 -0
- package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +6 -21
- package/dist/src/package/vendors/xlsx/index.d.ts +3 -2
- package/dist/src/package/vendors/xlsx/util.d.ts +0 -5
- package/dist/src/package/vendors/xlsx/worker/index.d.ts +4 -6
- package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +73 -0
- package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +1 -0
- package/dist/style.css +1 -57
- package/dist/wasm/cad/dwfv-render.wasm +0 -0
- package/dist/wasm/cad/dwg-worker.js +24 -0
- package/dist/wasm/cad/libredwg-web.js +15 -0
- package/dist/wasm/cad/libredwg-web.wasm +0 -0
- package/package.json +118 -42
- package/.vscode/extensions.json +0 -3
- package/dist/components/_commonjs-dynamic-modules.js +0 -6
- package/dist/components/_commonjsHelpers.js +0 -36
- package/dist/components/docx-preview.min.js +0 -5287
- package/dist/components/index.js +0 -1717
- package/dist/favicon.ico +0 -0
- package/dist/index.umd.js +0 -436
- package/dist/src/package/vendors/docx/index.d.ts +0 -4
- package/dist/src/package/vendors/xlsx/render.d.ts +0 -6
- package/dist/src/package/vendors/xlsx/worker/xls/SheetJsModel.d.ts +0 -36
- package/dist/src/package/vendors/xlsx/worker/xlsx/ExcelJsModel.d.ts +0 -39
- package/dist/src/package/vendors/xlsx/worker/xlsx/context.d.ts +0 -7
- package/dist/src/package/vendors/xlsx/worker/xlsx/index.d.ts +0 -4
- package/dist/src/package/vendors/xlsx/worker/xlsx/util.d.ts +0 -10
- package/dist/worker/pdf.worker.js +0 -66
- package/dist/worker/pptx.worker.js +0 -21
- package/dist/worker/sheet.worker.js +0 -38
- package/dist/worker/xlsx.worker.js +0 -65
- /package/dist/src/package/vendors/xlsx/worker/{xlsx → sheetjs}/color.d.ts +0 -0
- /package/dist/src/package/vendors/xlsx/worker/{xls → sheetjs}/index.d.ts +0 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csharp.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = [
|
|
4
|
+
"bool",
|
|
5
|
+
"byte",
|
|
6
|
+
"char",
|
|
7
|
+
"decimal",
|
|
8
|
+
"delegate",
|
|
9
|
+
"double",
|
|
10
|
+
"dynamic",
|
|
11
|
+
"enum",
|
|
12
|
+
"float",
|
|
13
|
+
"int",
|
|
14
|
+
"long",
|
|
15
|
+
"nint",
|
|
16
|
+
"nuint",
|
|
17
|
+
"object",
|
|
18
|
+
"sbyte",
|
|
19
|
+
"short",
|
|
20
|
+
"string",
|
|
21
|
+
"ulong",
|
|
22
|
+
"uint",
|
|
23
|
+
"ushort"
|
|
24
|
+
], n = [
|
|
25
|
+
"public",
|
|
26
|
+
"private",
|
|
27
|
+
"protected",
|
|
28
|
+
"static",
|
|
29
|
+
"internal",
|
|
30
|
+
"protected",
|
|
31
|
+
"abstract",
|
|
32
|
+
"async",
|
|
33
|
+
"extern",
|
|
34
|
+
"override",
|
|
35
|
+
"unsafe",
|
|
36
|
+
"virtual",
|
|
37
|
+
"new",
|
|
38
|
+
"sealed",
|
|
39
|
+
"partial"
|
|
40
|
+
], r = {
|
|
41
|
+
keyword: (/* @__PURE__ */ "abstract.as.base.break.case.catch.class.const.continue.do.else.event.explicit.extern.finally.fixed.for.foreach.goto.if.implicit.in.interface.internal.is.lock.namespace.new.operator.out.override.params.private.protected.public.readonly.record.ref.return.scoped.sealed.sizeof.stackalloc.static.struct.switch.this.throw.try.typeof.unchecked.unsafe.using.virtual.void.volatile.while".split(".")).concat(/* @__PURE__ */ "add.alias.and.ascending.args.async.await.by.descending.dynamic.equals.file.from.get.global.group.init.into.join.let.nameof.not.notnull.on.or.orderby.partial.record.remove.required.scoped.select.set.unmanaged.value|0.var.when.where.with.yield".split(".")),
|
|
42
|
+
built_in: t,
|
|
43
|
+
literal: [
|
|
44
|
+
"default",
|
|
45
|
+
"false",
|
|
46
|
+
"null",
|
|
47
|
+
"true"
|
|
48
|
+
]
|
|
49
|
+
}, i = e.inherit(e.TITLE_MODE, { begin: "[a-zA-Z](\\.?\\w)*" }), a = {
|
|
50
|
+
className: "number",
|
|
51
|
+
variants: [
|
|
52
|
+
{ begin: "\\b(0b[01']+)" },
|
|
53
|
+
{ begin: "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)" },
|
|
54
|
+
{ begin: "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" }
|
|
55
|
+
],
|
|
56
|
+
relevance: 0
|
|
57
|
+
}, o = {
|
|
58
|
+
className: "string",
|
|
59
|
+
begin: /"""("*)(?!")(.|\n)*?"""\1/,
|
|
60
|
+
relevance: 1
|
|
61
|
+
}, s = {
|
|
62
|
+
className: "string",
|
|
63
|
+
begin: "@\"",
|
|
64
|
+
end: "\"",
|
|
65
|
+
contains: [{ begin: "\"\"" }]
|
|
66
|
+
}, c = e.inherit(s, { illegal: /\n/ }), l = {
|
|
67
|
+
className: "subst",
|
|
68
|
+
begin: /\{/,
|
|
69
|
+
end: /\}/,
|
|
70
|
+
keywords: r
|
|
71
|
+
}, u = e.inherit(l, { illegal: /\n/ }), d = {
|
|
72
|
+
className: "string",
|
|
73
|
+
begin: /\$"/,
|
|
74
|
+
end: "\"",
|
|
75
|
+
illegal: /\n/,
|
|
76
|
+
contains: [
|
|
77
|
+
{ begin: /\{\{/ },
|
|
78
|
+
{ begin: /\}\}/ },
|
|
79
|
+
e.BACKSLASH_ESCAPE,
|
|
80
|
+
u
|
|
81
|
+
]
|
|
82
|
+
}, f = {
|
|
83
|
+
className: "string",
|
|
84
|
+
begin: /\$@"/,
|
|
85
|
+
end: "\"",
|
|
86
|
+
contains: [
|
|
87
|
+
{ begin: /\{\{/ },
|
|
88
|
+
{ begin: /\}\}/ },
|
|
89
|
+
{ begin: "\"\"" },
|
|
90
|
+
l
|
|
91
|
+
]
|
|
92
|
+
}, p = e.inherit(f, {
|
|
93
|
+
illegal: /\n/,
|
|
94
|
+
contains: [
|
|
95
|
+
{ begin: /\{\{/ },
|
|
96
|
+
{ begin: /\}\}/ },
|
|
97
|
+
{ begin: "\"\"" },
|
|
98
|
+
u
|
|
99
|
+
]
|
|
100
|
+
});
|
|
101
|
+
l.contains = [
|
|
102
|
+
f,
|
|
103
|
+
d,
|
|
104
|
+
s,
|
|
105
|
+
e.APOS_STRING_MODE,
|
|
106
|
+
e.QUOTE_STRING_MODE,
|
|
107
|
+
a,
|
|
108
|
+
e.C_BLOCK_COMMENT_MODE
|
|
109
|
+
], u.contains = [
|
|
110
|
+
p,
|
|
111
|
+
d,
|
|
112
|
+
c,
|
|
113
|
+
e.APOS_STRING_MODE,
|
|
114
|
+
e.QUOTE_STRING_MODE,
|
|
115
|
+
a,
|
|
116
|
+
e.inherit(e.C_BLOCK_COMMENT_MODE, { illegal: /\n/ })
|
|
117
|
+
];
|
|
118
|
+
let m = { variants: [
|
|
119
|
+
o,
|
|
120
|
+
f,
|
|
121
|
+
d,
|
|
122
|
+
s,
|
|
123
|
+
e.APOS_STRING_MODE,
|
|
124
|
+
e.QUOTE_STRING_MODE
|
|
125
|
+
] }, h = {
|
|
126
|
+
begin: "<",
|
|
127
|
+
end: ">",
|
|
128
|
+
contains: [{ beginKeywords: "in out" }, i]
|
|
129
|
+
}, g = e.IDENT_RE + "(<" + e.IDENT_RE + "(\\s*,\\s*" + e.IDENT_RE + ")*>)?(\\[\\])?", _ = {
|
|
130
|
+
begin: "@" + e.IDENT_RE,
|
|
131
|
+
relevance: 0
|
|
132
|
+
};
|
|
133
|
+
return {
|
|
134
|
+
name: "C#",
|
|
135
|
+
aliases: ["cs", "c#"],
|
|
136
|
+
keywords: r,
|
|
137
|
+
illegal: /::/,
|
|
138
|
+
contains: [
|
|
139
|
+
e.COMMENT("///", "$", {
|
|
140
|
+
returnBegin: !0,
|
|
141
|
+
contains: [{
|
|
142
|
+
className: "doctag",
|
|
143
|
+
variants: [
|
|
144
|
+
{
|
|
145
|
+
begin: "///",
|
|
146
|
+
relevance: 0
|
|
147
|
+
},
|
|
148
|
+
{ begin: "<!--|-->" },
|
|
149
|
+
{
|
|
150
|
+
begin: "</?",
|
|
151
|
+
end: ">"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
}]
|
|
155
|
+
}),
|
|
156
|
+
e.C_LINE_COMMENT_MODE,
|
|
157
|
+
e.C_BLOCK_COMMENT_MODE,
|
|
158
|
+
{
|
|
159
|
+
className: "meta",
|
|
160
|
+
begin: "#",
|
|
161
|
+
end: "$",
|
|
162
|
+
keywords: { keyword: "if else elif endif define undef warning error line region endregion pragma checksum" }
|
|
163
|
+
},
|
|
164
|
+
m,
|
|
165
|
+
a,
|
|
166
|
+
{
|
|
167
|
+
beginKeywords: "class interface",
|
|
168
|
+
relevance: 0,
|
|
169
|
+
end: /[{;=]/,
|
|
170
|
+
illegal: /[^\s:,]/,
|
|
171
|
+
contains: [
|
|
172
|
+
{ beginKeywords: "where class" },
|
|
173
|
+
i,
|
|
174
|
+
h,
|
|
175
|
+
e.C_LINE_COMMENT_MODE,
|
|
176
|
+
e.C_BLOCK_COMMENT_MODE
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
beginKeywords: "namespace",
|
|
181
|
+
relevance: 0,
|
|
182
|
+
end: /[{;=]/,
|
|
183
|
+
illegal: /[^\s:]/,
|
|
184
|
+
contains: [
|
|
185
|
+
i,
|
|
186
|
+
e.C_LINE_COMMENT_MODE,
|
|
187
|
+
e.C_BLOCK_COMMENT_MODE
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
beginKeywords: "record",
|
|
192
|
+
relevance: 0,
|
|
193
|
+
end: /[{;=]/,
|
|
194
|
+
illegal: /[^\s:]/,
|
|
195
|
+
contains: [
|
|
196
|
+
i,
|
|
197
|
+
h,
|
|
198
|
+
e.C_LINE_COMMENT_MODE,
|
|
199
|
+
e.C_BLOCK_COMMENT_MODE
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
className: "meta",
|
|
204
|
+
begin: "^\\s*\\[(?=[\\w])",
|
|
205
|
+
excludeBegin: !0,
|
|
206
|
+
end: "\\]",
|
|
207
|
+
excludeEnd: !0,
|
|
208
|
+
contains: [{
|
|
209
|
+
className: "string",
|
|
210
|
+
begin: /"/,
|
|
211
|
+
end: /"/
|
|
212
|
+
}]
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
beginKeywords: "new return throw await else",
|
|
216
|
+
relevance: 0
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
className: "function",
|
|
220
|
+
begin: "(" + g + "\\s+)+" + e.IDENT_RE + "\\s*(<[^=]+>\\s*)?\\(",
|
|
221
|
+
returnBegin: !0,
|
|
222
|
+
end: /\s*[{;=]/,
|
|
223
|
+
excludeEnd: !0,
|
|
224
|
+
keywords: r,
|
|
225
|
+
contains: [
|
|
226
|
+
{
|
|
227
|
+
beginKeywords: n.join(" "),
|
|
228
|
+
relevance: 0
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
begin: e.IDENT_RE + "\\s*(<[^=]+>\\s*)?\\(",
|
|
232
|
+
returnBegin: !0,
|
|
233
|
+
contains: [e.TITLE_MODE, h],
|
|
234
|
+
relevance: 0
|
|
235
|
+
},
|
|
236
|
+
{ match: /\(\)/ },
|
|
237
|
+
{
|
|
238
|
+
className: "params",
|
|
239
|
+
begin: /\(/,
|
|
240
|
+
end: /\)/,
|
|
241
|
+
excludeBegin: !0,
|
|
242
|
+
excludeEnd: !0,
|
|
243
|
+
keywords: r,
|
|
244
|
+
relevance: 0,
|
|
245
|
+
contains: [
|
|
246
|
+
m,
|
|
247
|
+
a,
|
|
248
|
+
e.C_BLOCK_COMMENT_MODE
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
e.C_LINE_COMMENT_MODE,
|
|
252
|
+
e.C_BLOCK_COMMENT_MODE
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
_
|
|
256
|
+
]
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
//#endregion
|
|
260
|
+
export { e as default };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js
|
|
2
|
+
var e = (e) => ({
|
|
3
|
+
IMPORTANT: {
|
|
4
|
+
scope: "meta",
|
|
5
|
+
begin: "!important"
|
|
6
|
+
},
|
|
7
|
+
BLOCK_COMMENT: e.C_BLOCK_COMMENT_MODE,
|
|
8
|
+
HEXCOLOR: {
|
|
9
|
+
scope: "number",
|
|
10
|
+
begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/
|
|
11
|
+
},
|
|
12
|
+
FUNCTION_DISPATCH: {
|
|
13
|
+
className: "built_in",
|
|
14
|
+
begin: /[\w-]+(?=\()/
|
|
15
|
+
},
|
|
16
|
+
ATTRIBUTE_SELECTOR_MODE: {
|
|
17
|
+
scope: "selector-attr",
|
|
18
|
+
begin: /\[/,
|
|
19
|
+
end: /\]/,
|
|
20
|
+
illegal: "$",
|
|
21
|
+
contains: [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE]
|
|
22
|
+
},
|
|
23
|
+
CSS_NUMBER_MODE: {
|
|
24
|
+
scope: "number",
|
|
25
|
+
begin: e.NUMBER_RE + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",
|
|
26
|
+
relevance: 0
|
|
27
|
+
},
|
|
28
|
+
CSS_VARIABLE: {
|
|
29
|
+
className: "attr",
|
|
30
|
+
begin: /--[A-Za-z_][A-Za-z0-9_-]*/
|
|
31
|
+
}
|
|
32
|
+
}), t = /* @__PURE__ */ "a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video".split("."), n = /* @__PURE__ */ "defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath".split("."), r = [...t, ...n], i = (/* @__PURE__ */ "any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height".split(".")).sort().reverse(), a = (/* @__PURE__ */ "active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where".split(".")).sort().reverse(), o = [
|
|
33
|
+
"after",
|
|
34
|
+
"backdrop",
|
|
35
|
+
"before",
|
|
36
|
+
"cue",
|
|
37
|
+
"cue-region",
|
|
38
|
+
"first-letter",
|
|
39
|
+
"first-line",
|
|
40
|
+
"grammar-error",
|
|
41
|
+
"marker",
|
|
42
|
+
"part",
|
|
43
|
+
"placeholder",
|
|
44
|
+
"selection",
|
|
45
|
+
"slotted",
|
|
46
|
+
"spelling-error"
|
|
47
|
+
].sort().reverse(), s = (/* @__PURE__ */ "accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom".split(".")).sort().reverse();
|
|
48
|
+
function c(t) {
|
|
49
|
+
let n = t.regex, c = e(t), l = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, u = /@-?\w[\w]*(-\w+)*/, d = [t.APOS_STRING_MODE, t.QUOTE_STRING_MODE];
|
|
50
|
+
return {
|
|
51
|
+
name: "CSS",
|
|
52
|
+
case_insensitive: !0,
|
|
53
|
+
illegal: /[=|'\$]/,
|
|
54
|
+
keywords: { keyframePosition: "from to" },
|
|
55
|
+
classNameAliases: { keyframePosition: "selector-tag" },
|
|
56
|
+
contains: [
|
|
57
|
+
c.BLOCK_COMMENT,
|
|
58
|
+
l,
|
|
59
|
+
c.CSS_NUMBER_MODE,
|
|
60
|
+
{
|
|
61
|
+
className: "selector-id",
|
|
62
|
+
begin: /#[A-Za-z0-9_-]+/,
|
|
63
|
+
relevance: 0
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
className: "selector-class",
|
|
67
|
+
begin: "\\.[a-zA-Z-][a-zA-Z0-9_-]*",
|
|
68
|
+
relevance: 0
|
|
69
|
+
},
|
|
70
|
+
c.ATTRIBUTE_SELECTOR_MODE,
|
|
71
|
+
{
|
|
72
|
+
className: "selector-pseudo",
|
|
73
|
+
variants: [{ begin: ":(" + a.join("|") + ")" }, { begin: ":(:)?(" + o.join("|") + ")" }]
|
|
74
|
+
},
|
|
75
|
+
c.CSS_VARIABLE,
|
|
76
|
+
{
|
|
77
|
+
className: "attribute",
|
|
78
|
+
begin: "\\b(" + s.join("|") + ")\\b"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
begin: /:/,
|
|
82
|
+
end: /[;}{]/,
|
|
83
|
+
contains: [
|
|
84
|
+
c.BLOCK_COMMENT,
|
|
85
|
+
c.HEXCOLOR,
|
|
86
|
+
c.IMPORTANT,
|
|
87
|
+
c.CSS_NUMBER_MODE,
|
|
88
|
+
...d,
|
|
89
|
+
{
|
|
90
|
+
begin: /(url|data-uri)\(/,
|
|
91
|
+
end: /\)/,
|
|
92
|
+
relevance: 0,
|
|
93
|
+
keywords: { built_in: "url data-uri" },
|
|
94
|
+
contains: [...d, {
|
|
95
|
+
className: "string",
|
|
96
|
+
begin: /[^)]/,
|
|
97
|
+
endsWithParent: !0,
|
|
98
|
+
excludeEnd: !0
|
|
99
|
+
}]
|
|
100
|
+
},
|
|
101
|
+
c.FUNCTION_DISPATCH
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
begin: n.lookahead(/@/),
|
|
106
|
+
end: "[{;]",
|
|
107
|
+
relevance: 0,
|
|
108
|
+
illegal: /:/,
|
|
109
|
+
contains: [{
|
|
110
|
+
className: "keyword",
|
|
111
|
+
begin: u
|
|
112
|
+
}, {
|
|
113
|
+
begin: /\s/,
|
|
114
|
+
endsWithParent: !0,
|
|
115
|
+
excludeEnd: !0,
|
|
116
|
+
relevance: 0,
|
|
117
|
+
keywords: {
|
|
118
|
+
$pattern: /[a-z-]+/,
|
|
119
|
+
keyword: "and or not only",
|
|
120
|
+
attribute: i.join(" ")
|
|
121
|
+
},
|
|
122
|
+
contains: [
|
|
123
|
+
{
|
|
124
|
+
begin: /[a-z-]+(?=:)/,
|
|
125
|
+
className: "attribute"
|
|
126
|
+
},
|
|
127
|
+
...d,
|
|
128
|
+
c.CSS_NUMBER_MODE
|
|
129
|
+
]
|
|
130
|
+
}]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
className: "selector-tag",
|
|
134
|
+
begin: "\\b(" + r.join("|") + ")\\b"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
//#endregion
|
|
140
|
+
export { c as default };
|