azdiffs 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +67 -2
- package/THIRD_PARTY_NOTICES.md +4514 -0
- package/dist/cli.js +4768 -0
- package/dist/web/assets/_organization.___git._repository.pullrequest._pullRequestId-D7saE-jO.js +1 -0
- package/dist/web/assets/_organization.___git._repository.pullrequest._pullRequestId.commits._commitId-DOwGbBTQ.js +1 -0
- package/dist/web/assets/_organization.___git._repository.pullrequest._pullRequestId.commits.index-DzGjUdAz.js +1 -0
- package/dist/web/assets/_organization.___git._repository.pullrequest._pullRequestId.conflicts-Cjr34xFt.js +1 -0
- package/dist/web/assets/_organization.___git._repository.pullrequest._pullRequestId.files-BjjJ4Yb8.js +1 -0
- package/dist/web/assets/_organization.___git._repository.pullrequest._pullRequestId.index-iY62N_zR.js +1 -0
- package/dist/web/assets/_organization._project.___git._repository.pullrequest._pullRequestId-CrHRklAE.js +1 -0
- package/dist/web/assets/_organization._project.___git._repository.pullrequest._pullRequestId.commits._commitId-WC7fEryq.js +1 -0
- package/dist/web/assets/_organization._project.___git._repository.pullrequest._pullRequestId.commits.index-DzGjUdAz.js +1 -0
- package/dist/web/assets/_organization._project.___git._repository.pullrequest._pullRequestId.conflicts-BhUkafpV.js +1 -0
- package/dist/web/assets/_organization._project.___git._repository.pullrequest._pullRequestId.files-_RVmv4sD.js +1 -0
- package/dist/web/assets/_organization._project.___git._repository.pullrequest._pullRequestId.index-BJrgfbSD.js +1 -0
- package/dist/web/assets/_organization.index-hKcWlBrk.js +1 -0
- package/dist/web/assets/bat-qdxAdBWQ.js +1 -0
- package/dist/web/assets/bicep-CUHmPFLl.js +1 -0
- package/dist/web/assets/c-B0t_Dlza.js +1 -0
- package/dist/web/assets/cmake-Bj61d0ZC.js +1 -0
- package/dist/web/assets/commit-diff-view-CQeZylif.js +1 -0
- package/dist/web/assets/commits-view-B_TQ6AnD.js +13 -0
- package/dist/web/assets/conflicts-view-CnGEkjaP.js +8 -0
- package/dist/web/assets/core-D5Wev6DN.js +12 -0
- package/dist/web/assets/core-DfsS1UI1.js +12 -0
- package/dist/web/assets/cpp-DGR_3gb-.js +1 -0
- package/dist/web/assets/csharp-dmMxLVLW.js +1 -0
- package/dist/web/assets/css-CBDjU9xM.js +1 -0
- package/dist/web/assets/dart-CHZY9Xhz.js +1 -0
- package/dist/web/assets/dev.diff-DH1qvnWe.js +1 -0
- package/dist/web/assets/diff-woXpYk--.js +1 -0
- package/dist/web/assets/docker-IyjqRm3v.js +1 -0
- package/dist/web/assets/dotenv-CuH5my32.js +1 -0
- package/dist/web/assets/engine-javascript-C4Jk_eU2.js +141 -0
- package/dist/web/assets/engine-javascript-DpLLfDIa.js +141 -0
- package/dist/web/assets/engine-oniguruma-BfcA8yDp.js +1 -0
- package/dist/web/assets/engine-oniguruma-D--T0LcV.js +1 -0
- package/dist/web/assets/file-header-keBlejWu.js +49 -0
- package/dist/web/assets/files-view-Bu3bjrNf.js +1460 -0
- package/dist/web/assets/fsharp-D13ZGOAj.js +1 -0
- package/dist/web/assets/go-rLFTqkRN.js +1 -0
- package/dist/web/assets/grammars-DmFYBwmS.js +2 -0
- package/dist/web/assets/graphql-Br4JsJsw.js +1 -0
- package/dist/web/assets/groovy-CacY0gHj.js +1 -0
- package/dist/web/assets/hcl-Dh228itO.js +1 -0
- package/dist/web/assets/highlights-BJb1-tzP.js +1 -0
- package/dist/web/assets/highlights-CIgHM7EF-ByjlShdO.js +1 -0
- package/dist/web/assets/home-page-Y5jGxOav.js +1 -0
- package/dist/web/assets/html-Cyo-BRss.js +1 -0
- package/dist/web/assets/inbox-jP8QPtzZ.js +1 -0
- package/dist/web/assets/index-B297yCgq.js +11 -0
- package/dist/web/assets/index-CjZUV4-4.css +1 -0
- package/dist/web/assets/ini-B5eOa1yu.js +1 -0
- package/dist/web/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/web/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/web/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/web/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/web/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/web/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/web/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/web/assets/java-r7y4bhRH.js +1 -0
- package/dist/web/assets/javascript-anBMbNY-.js +1 -0
- package/dist/web/assets/json-qhed-kSA.js +1 -0
- package/dist/web/assets/json5-BR5RXkoi.js +1 -0
- package/dist/web/assets/jsonc-CYpm1nAK.js +1 -0
- package/dist/web/assets/jsx-Bz0zcwM4.js +1 -0
- package/dist/web/assets/kotlin-DhhofPvG.js +1 -0
- package/dist/web/assets/langs_worker-Dyqdnub0.js +1 -0
- package/dist/web/assets/less-DVTAwKKz.js +1 -0
- package/dist/web/assets/lib-C2gVWm_O.js +1 -0
- package/dist/web/assets/lib-rf_jxHx0.js +1 -0
- package/dist/web/assets/lineChanges-Dw4ZXwVU.js +9 -0
- package/dist/web/assets/loader-BljfpPoZ.js +1 -0
- package/dist/web/assets/loader-C-ieOA_A.js +1 -0
- package/dist/web/assets/lua-mGgFNKt2.js +1 -0
- package/dist/web/assets/makefile-Dixweg8N.js +1 -0
- package/dist/web/assets/markdown-BYOwaDjH.js +1 -0
- package/dist/web/assets/overview-view-cEOsI9TY.js +2 -0
- package/dist/web/assets/php-DTciGFRO.js +1 -0
- package/dist/web/assets/pierre-dark-DMS-zpcK.js +1 -0
- package/dist/web/assets/pierre-light-BHq6aQNU.js +1 -0
- package/dist/web/assets/powershell-QtSnmXcu.js +1 -0
- package/dist/web/assets/properties-CHTuaqAW.js +1 -0
- package/dist/web/assets/proto-DB4EqR-F.js +1 -0
- package/dist/web/assets/pull-request-layout-DsDKURcq.js +35 -0
- package/dist/web/assets/python-gzcpVVnB.js +1 -0
- package/dist/web/assets/razor-3kKIP6Di.js +1 -0
- package/dist/web/assets/rolldown-runtime-BLXQ4ufn.js +1 -0
- package/dist/web/assets/routes-BruvNNp9.js +1 -0
- package/dist/web/assets/rust-DpiIf5JO.js +1 -0
- package/dist/web/assets/scala-BiFt_7mu.js +1 -0
- package/dist/web/assets/scss-DC8XIxmG.js +1 -0
- package/dist/web/assets/shellscript-CLZ0U2zV.js +1 -0
- package/dist/web/assets/shiki-DueA5xDi.js +1 -0
- package/dist/web/assets/shiki-DxP4sN1Z-caEk3oPG.js +1 -0
- package/dist/web/assets/shortcut-help-Cb0be4f3.js +1 -0
- package/dist/web/assets/sql-CEbI0hMM.js +1 -0
- package/dist/web/assets/stream-tokenizer-7LLwu37w-C37tUWGx.js +12 -0
- package/dist/web/assets/stream-tokenizer-B5Ok5N3S.js +4 -0
- package/dist/web/assets/svelte-iJTmbwM3.js +1 -0
- package/dist/web/assets/swift-CyEgAFGc.js +1 -0
- package/dist/web/assets/terraform-DswuEJGm.js +1 -0
- package/dist/web/assets/themes-BKc5vU6v.js +1 -0
- package/dist/web/assets/themes-SQq_asFq.js +1 -0
- package/dist/web/assets/toml-CcmNWLt0.js +1 -0
- package/dist/web/assets/tsx-udAQXfEw.js +1 -0
- package/dist/web/assets/typescript-bsJCZSQ-.js +1 -0
- package/dist/web/assets/utils-Tkdy0sOA.js +1 -0
- package/dist/web/assets/vb-DOwzaHZ0.js +1 -0
- package/dist/web/assets/vue-Dz_q6gML.js +1 -0
- package/dist/web/assets/wasm-C7N7kd8H.js +1 -0
- package/dist/web/assets/worker-B--T_fs_.js +7 -0
- package/dist/web/assets/xml-Bz5Z3pZJ.js +1 -0
- package/dist/web/assets/yaml-rwi0_p6S.js +1 -0
- package/dist/web/favicon.svg +5 -0
- package/dist/web/index.html +16 -0
- package/package.json +41 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./css-CBDjU9xM.js";import{t}from"./javascript-anBMbNY-.js";import n from"./typescript-bsJCZSQ-.js";import r from"./json-qhed-kSA.js";import i from"./html-Cyo-BRss.js";var a=Object.freeze(JSON.parse(`{"displayName":"HTML (Derivative)","injections":{"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"html-derivative","patterns":[{"include":"text.html.basic#core-minus-invalid"},{"begin":"(</?)(\\\\w[^<>\\\\s]*)(?<!/)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"((?: ?/)?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.unrecognized.html.derivative","patterns":[{"include":"text.html.basic#attribute"}]}],"scopeName":"text.html.derivative","embeddedLangs":["html"]}`)),o=[...i,a],s=[Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["text.html.markdown"],"injectionSelector":"L:text.html.markdown","name":"markdown-vue","patterns":[{"include":"#vue-code-block"}],"repository":{"vue-code-block":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(vue)((\\\\s+|[,:?{])[^`~]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown","patterns":[]}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"include":"text.html.vue"}]}},"scopeName":"markdown.vue.codeblock"}'))],c=[Object.freeze(JSON.parse(`{"fileTypes":[],"injectTo":["source.vue","text.html.markdown","text.html.derivative","text.pug"],"injectionSelector":"L:meta.tag -meta.attribute -meta.ng-binding -entity.name.tag.pug -attribute_value -source.tsx -source.js.jsx, L:meta.element -meta.attribute","name":"vue-directives","patterns":[{"include":"text.html.vue#vue-directives"}],"scopeName":"vue.directives"}`))],l=[Object.freeze(JSON.parse(`{"fileTypes":[],"injectTo":["source.vue","text.html.markdown","text.html.derivative","text.pug"],"injectionSelector":"L:text.pug -comment -string.comment, L:text.html.derivative -comment.block, L:text.html.markdown -comment.block","name":"vue-interpolations","patterns":[{"include":"text.html.vue#vue-interpolations"}],"scopeName":"vue.interpolations"}`))],u=Object.freeze(JSON.parse(`{"fileTypes":[],"injectTo":["source.vue"],"injectionSelector":"L:source.css -comment, L:source.postcss -comment, L:source.sass -comment, L:source.stylus -comment","name":"vue-sfc-style-variable-injection","patterns":[{"include":"#vue-sfc-style-variable-injection"}],"repository":{"vue-sfc-style-variable-injection":{"begin":"\\\\b(v-bind)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function"}},"end":"\\\\)","name":"vue.sfc.style.variable.injection.v-bind","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"source.ts.embedded.html.vue","patterns":[{"include":"source.js"}]},{"include":"source.js"}]}},"scopeName":"vue.sfc.style.variable.injection","embeddedLangs":["javascript"]}`)),d=[...t,u],f=Object.freeze(JSON.parse(`{"displayName":"Vue","name":"vue","patterns":[{"include":"#vue-comments"},{"include":"#self-closing-tag"},{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"patterns":[{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)md\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.html.markdown","patterns":[{"include":"text.html.markdown"}]}]},{"begin":"(?!template(?![-0-:A-Za-z]))([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)html\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"contentName":"text.html.derivative","end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"include":"#html-stuff"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)pug\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.pug","patterns":[{"include":"text.pug"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)stylus\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.stylus","patterns":[{"include":"source.stylus"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)postcss\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.postcss","patterns":[{"include":"source.postcss"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)sass\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.sass","patterns":[{"include":"source.sass"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)css\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css","patterns":[{"include":"source.css"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)scss\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css.scss","patterns":[{"include":"source.css.scss"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)less\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css.less","patterns":[{"include":"source.css.less"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)js\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.js","patterns":[{"include":"source.js"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)ts\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*<\/script[>\\\\s])","end":"(?=<\/script[>\\\\s])","name":"source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>)","name":"source.ts","patterns":[{"include":"source.ts"}],"while":"^(?!\\\\s*<\/script[>\\\\s])"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)jsx\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.js.jsx","patterns":[{"include":"source.js.jsx"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)tsx\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*<\/script[>\\\\s])","end":"(?=<\/script[>\\\\s])","name":"source.tsx","patterns":[{"include":"source.tsx"}]},{"begin":"(?<=>)","name":"source.tsx","patterns":[{"include":"source.tsx"}],"while":"^(?!\\\\s*<\/script[>\\\\s])"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)coffee\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.coffee","patterns":[{"include":"source.coffee"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)json\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json","patterns":[{"include":"source.json"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)jsonc\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json.comments","patterns":[{"include":"source.json.comments"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)json5\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json5","patterns":[{"include":"source.json5"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)yaml\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.yaml","patterns":[{"include":"source.yaml"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)toml\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.toml","patterns":[{"include":"source.toml"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)(g(?:ql|raphql))\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.graphql","patterns":[{"include":"source.graphql"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)vue\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.html.vue","patterns":[{"include":"text.html.vue"}]}]},{"begin":"(template)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</template[>\\\\s])","name":"text.html.derivative","patterns":[{"include":"#html-stuff"}]}]},{"begin":"(script)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#multi-line-script-tag-stuff"}]},{"begin":"(style)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#multi-line-style-tag-stuff"}]},{"begin":"([-0-:A-Za-z]+)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text"}]}]}],"repository":{"capitalized-tag":{"begin":"(<)([A-Z][-0-:A-Za-z]*)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.html.vue"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag.structure.$2.start.html.vue","patterns":[{"begin":"\\\\G","end":"(?=/?>)","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]}]},"html-stuff":{"patterns":[{"include":"#template-tag"},{"include":"#capitalized-tag"},{"include":"text.html.derivative"},{"include":"text.html.basic"}]},"multi-line-script-tag-stuff":{"begin":"\\\\G","end":"(?=<\/script[>\\\\s])","patterns":[{"begin":"\\\\G(?!\\\\blang\\\\s*=\\\\s*[\\"']?(?:tsx??|jsx|coffee)\\\\b)","end":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?(?:tsx??|jsx|coffee)\\\\b)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?ts\\\\b)","end":"(?=<\/script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*<\/script[>\\\\s])","end":"(?=<\/script[>\\\\s])","name":"source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>)","name":"source.ts","patterns":[{"include":"source.ts"}],"while":"^(?!\\\\s*<\/script[>\\\\s])"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?tsx\\\\b)","end":"(?=<\/script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*<\/script[>\\\\s])","end":"(?=<\/script[>\\\\s])","name":"source.tsx","patterns":[{"include":"source.tsx"}]},{"begin":"(?<=>)","name":"source.tsx","patterns":[{"include":"source.tsx"}],"while":"^(?!\\\\s*<\/script[>\\\\s])"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?jsx\\\\b)","end":"(?=<\/script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=<\/script[>\\\\s])","name":"source.js.jsx","patterns":[{"include":"source.js.jsx"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?coffee\\\\b)","end":"(?=<\/script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=<\/script[>\\\\s])","name":"source.coffee","patterns":[{"include":"source.coffee"}]}]},{"begin":"(?<=>)","end":"(?=<\/script[>\\\\s])","name":"source.js","patterns":[{"include":"source.js"}]}]},"multi-line-style-tag-stuff":{"begin":"\\\\G","end":"(?=</style[>\\\\s])","patterns":[{"begin":"\\\\G(?!\\\\blang\\\\s*=\\\\s*[\\"']?(?:scss|stylus|less|postcss)\\\\b)","end":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?(?:scss|stylus|less|postcss)\\\\b)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?scss\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css.scss","patterns":[{"include":"source.css.scss"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?stylus\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.stylus","patterns":[{"include":"source.stylus"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?less\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css.less","patterns":[{"include":"source.css.less"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?postcss\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.postcss","patterns":[{"include":"source.postcss"}]}]},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css","patterns":[{"include":"source.css"}]}]},"self-closing-tag":{"begin":"(<)([-0-:A-Za-z]+)(?=([^>]+/>))","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"end":"(/>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"self-closing-tag","patterns":[{"include":"#tag-stuff"}]},"tag-stuff":{"begin":"\\\\G","end":"(?=/>)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},"template-tag":{"patterns":[{"include":"#template-tag-1"},{"include":"#template-tag-2"}]},"template-tag-1":{"begin":"(<)(template)\\\\b(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"},"3":{"name":"punctuation.definition.tag.end.html.vue"}},"end":"(/?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.template-tag.start","patterns":[{"begin":"\\\\G","end":"(?=/>)|((</)(template)(?=[>\\\\s]))","endCaptures":{"2":{"name":"punctuation.definition.tag.begin.html.vue"},"3":{"name":"entity.name.tag.$3.html.vue"}},"name":"meta.template-tag.end","patterns":[{"include":"#html-stuff"}]}]},"template-tag-2":{"begin":"(<)(template)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"end":"(/?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.template-tag.start","patterns":[{"begin":"\\\\G","end":"(?=/>)|((</)(template)(?=[>\\\\s]))","endCaptures":{"2":{"name":"punctuation.definition.tag.begin.html.vue"},"3":{"name":"entity.name.tag.$3.html.vue"}},"name":"meta.template-tag.end","patterns":[{"include":"#tag-stuff"},{"include":"#html-stuff"}]}]},"vue-comments":{"patterns":[{"include":"#vue-comments-key-value"},{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.vue"}},"end":"-->","name":"comment.block.vue"}]},"vue-comments-key-value":{"begin":"(<!--)\\\\s*(@)([$\\\\w]+)(?=\\\\s)","beginCaptures":{"1":{"name":"punctuation.definition.comment.vue"},"2":{"name":"punctuation.definition.block.tag.comment.vue"},"3":{"name":"storage.type.class.comment.vue"}},"end":"(-->)","endCaptures":{"1":{"name":"punctuation.definition.comment.vue"}},"name":"comment.block.vue","patterns":[{"include":"source.json#value"}]},"vue-directives":{"patterns":[{"include":"#vue-directives-control"},{"include":"#vue-directives-generic-attr"},{"include":"#vue-directives-style-attr"},{"include":"#vue-directives-original"}]},"vue-directives-control":{"begin":"(?:(v-for)|(v-(?:if|else-if|else)))(?=[)/=>\\\\s])","beginCaptures":{"1":{"name":"keyword.control.loop.vue"},"2":{"name":"keyword.control.conditional.vue"}},"end":"(?=\\\\s*[^=\\\\s])","name":"meta.attribute.directive.control.vue","patterns":[{"include":"#vue-directives-expression"}]},"vue-directives-expression":{"patterns":[{"begin":"(=)\\\\s*([\\"'\`])","beginCaptures":{"1":{"name":"punctuation.separator.key-value.html.vue"},"2":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"patterns":[{"begin":"(?<=([\\"'\`]))","end":"(?=\\\\1)","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]},{"begin":"(=)\\\\s*(?=[^\\"'\`])","beginCaptures":{"1":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?=([>\\\\s]|/>))","patterns":[{"begin":"(?=[^\\"'\`])","end":"(?=([>\\\\s]|/>))","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]}]},"vue-directives-generic-attr":{"begin":"\\\\b(generic)\\\\s*(=)","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?<=[\\"'])","name":"meta.attribute.generic.vue","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"name":"meta.type.parameters.vue","patterns":[{"include":"source.ts#comment"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"},{"include":"source.ts#type"},{"include":"source.ts#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.ts"}]}]},"vue-directives-original":{"begin":"(?:(v-[-\\\\w]+)(:)?|([.:])|(@)|(#))(?:(\\\\[)([^]]*)(])|([-\\\\w]+))?","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"},"3":{"name":"punctuation.attribute-shorthand.bind.html.vue"},"4":{"name":"punctuation.attribute-shorthand.event.html.vue"},"5":{"name":"punctuation.attribute-shorthand.slot.html.vue"},"6":{"name":"punctuation.separator.key-value.html.vue"},"7":{"name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]},"8":{"name":"punctuation.separator.key-value.html.vue"},"9":{"name":"entity.other.attribute-name.html.vue"}},"end":"(?=\\\\s*[^=\\\\s])","name":"meta.attribute.directive.vue","patterns":[{"1":{"name":"punctuation.separator.key-value.html.vue"},"2":{"name":"entity.other.attribute-name.html.vue"},"match":"(\\\\.)([-\\\\w]*)"},{"include":"#vue-directives-expression"}]},"vue-directives-style-attr":{"begin":"\\\\b(style)\\\\s*(=)","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?<=[\\"'])","name":"meta.attribute.style.vue","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"name":"source.css.embedded.html.vue","patterns":[{"include":"source.css#comment-block"},{"include":"source.css#escapes"},{"include":"source.css#font-features"},{"match":"(?<![-\\\\w])--[-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*","name":"variable.css"},{"begin":"(?<![-A-Za-z])(?=[-A-Za-z])","end":"$|(?![-A-Za-z])","name":"meta.property-name.css","patterns":[{"include":"source.css#property-names"}]},{"begin":"(:)\\\\s*","beginCaptures":{"1":{"name":"punctuation.separator.key-value.css"}},"contentName":"meta.property-value.css","end":"\\\\s*(;)|\\\\s*(?=[\\"'])","endCaptures":{"1":{"name":"punctuation.terminator.rule.css"}},"patterns":[{"include":"source.css#comment-block"},{"include":"source.css#property-values"}]},{"match":";","name":"punctuation.terminator.rule.css"}]}]},"vue-interpolations":{"patterns":[{"begin":"(\\\\{\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.interpolation.begin.html.vue"}},"end":"(}})","endCaptures":{"1":{"name":"punctuation.definition.interpolation.end.html.vue"}},"name":"expression.embedded.vue","patterns":[{"begin":"\\\\G","end":"(?=}})","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]}]}},"scopeName":"text.html.vue","embeddedLangs":["css","javascript","typescript","json","html","html-derivative","markdown-vue","vue-directives","vue-interpolations","vue-sfc-style-variable-injection"],"embeddedLangsLazy":["markdown","pug","stylus","sass","scss","less","jsx","tsx","coffee","jsonc","json5","yaml","toml","graphql"]}`)),p=[...e,...t,...n,...r,...i,...o,...s,...c,...l,...d,f];export{p as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=()=>{throw Error(`azdiffs ships the JavaScript regex engine only`)};export{e as default};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const e={dark:`pierre-dark`,light:`pierre-light`};Object.freeze({fromStart:0,fromEnd:0}),Object.freeze([]);const t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Map,r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ new Map,a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Set;let s,c=0;var l=class extends Error{constructor(){super(`Highlighter is disposed`),this.name=`HighlighterDisposedError`}};function u(e){return e??s??`shiki-js`}function d(e){if(s!=null&&s!==e)throw Error(`Cannot load the "${e}" highlighter while "${s}" is in use. Only one highlighter type can be active at a time; dispose every "${s}" instance (disposeHighlighter() disposes the shared one) before switching.`)}function f(e){d(e),s=e,c++}function p(){c--,c===0&&(s=void 0)}function m(e,t){for(let n of t)e.push(n)}var h=class{parent;nextEdge;#e;#t;#n=[];#r=0;#i=[];#a=[];constructor(e,t,n,r){this.parent=this.#e=e,this.#t=r,t.length>1&&t.sort((e,t)=>e.start.line===t.start.line?e.start.character===t.start.character?e.end.line===t.end.line?t.end.character-e.end.character:t.end.line-e.end.line:e.start.character-t.start.character:e.start.line-t.start.line);let i=this.#n;for(let e=0;e<t.length;e++){let a=t[e],o={decoration:a,order:e,from:a.start.line===n?a.start.character:0,to:a.end.line===n?a.end.character:r};i.push({position:Math.max(0,Math.min(o.from,r)),range:o,start:!0},{position:Math.max(0,Math.min(o.to,r)),range:o,start:!1})}i.sort((e,t)=>e.position-t.position),this.nextEdge=i[0]?.position??r}moveTo(e){this.nextEdge===e&&this.#r<this.#n.length&&this.#o(e)}#o(e){let t=this.#n,n=this.#t,r=this.#r,i=r;for(;t[i]?.position===e;)i++;this.#r=i,this.nextEdge=t[i]?.position??this.#t;let a=!1;for(let a=r;a<i;a++){let{range:r,start:i}=t[a];!i&&r.from!==r.to&&e<n&&this.#s(r,!1)}for(let o=r;o<i;o++){let{range:r,start:i}=t[o];i&&r.from<=e&&r.to>=e&&(r.to>e||r.from===e||e===n)&&(this.#s(r,!0),r.from===r.to&&(a=!0))}if(a){this.#c();for(let e=r;e<i;e++){let{range:n,start:r}=t[e];r&&n.from===n.to&&this.#s(n,!1)}}e<n&&(this.parent=this.#c())}#s(e,t){let n=this.#i,r=0,i=n.length;for(;r<i;){let t=r+i>>>1;n[t].order<e.order?r=t+1:i=t}t?n.splice(r,0,e):n[r]===e&&n.splice(r,1)}#c(){let e=this.#a,t=this.#e,n=0;for(let r of this.#i){if(e[n]?.range!==r){e.length=n;let i={type:`element`,tagName:`span`,properties:{...r.decoration.properties},children:[]};t.children.push(i),e.push({range:r,node:i})}t=e[n++].node}return e.length=n,t}};function g(e){return{type:`text`,value:e}}function _({tagName:e,children:t=[],properties:n={}}){return{type:`element`,tagName:e,properties:n,children:t}}function v(e,t,n){let r=typeof n.lineInfo==`function`?n.lineInfo(t):n.lineInfo[t-1];if(r==null){let r=`processLine: line ${t}, contains no state.lineInfo`;throw console.error(r,{node:e,line:t,state:n}),Error(r)}return e.tagName=`div`,e.properties[`data-line`]=r.lineNumber,e.properties[`data-alt-line`]=r.altLineNumber,e.properties[`data-line-type`]=r.type,e.properties[`data-line-index`]=r.lineIndex,e.children.length===0&&e.children.push(g(`
|
|
2
|
+
`)),e}function y(e,t,n,{retain:r=!0}={}){let i=!1,a;Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get(){if(i)return a;let o=n();return r?(a=o,i=!0,Object.getOwnPropertyDescriptor(e,t)?.configurable===!0&&Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:a}),a):o},set(n){if(Object.getOwnPropertyDescriptor(e,t)?.configurable===!0)Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n});else if(Object.isFrozen(e))throw TypeError(`Cannot assign to read only array index '${t}'`);else a=n,i=!0}})}const b=/* @__PURE__ */ new WeakMap;function x(e,t=!1){let{htmlStyle:n}=e;if(n!=null){let e=t?b.get(n):void 0;if(e==null){e=``;for(let t in n)e+=`${e===``?``:`;`}${t}:${n[t]}`;t&&b.set(n,e)}return e}let r=e.color==null?``:`color:${e.color}`;if(e.bgColor!=null&&(r+=`;background-color:${e.bgColor}`),e.fontStyle!=null){e.fontStyle&1&&(r+=`;font-style:italic`),e.fontStyle&2&&(r+=`;font-weight:bold`);let t=!!(e.fontStyle&4),n=!!(e.fontStyle&8);(t||n)&&(r+=`;text-decoration:${t?`underline`:``}${t&&n?` `:``}${n?`line-through`:``}`)}return r.replace(/^;/,``)}const S=Symbol(`no-token`),C=Symbol(`multiple-tokens`);function w(e){let t=T(e);if(t!=null)return t;let n=S,r=[],i=[],a,o=()=>{if(i.length===0||a==null)i=[],a=void 0;else if(i.length===1){let e=i[0];if(e?.type===`element`){ee(e,a);for(let t of e.children)E(t)}else E(e);r.push(e),i=[],a=void 0}else{for(let e of i)E(e);r.push(_({tagName:`span`,properties:{"data-char":a},children:i})),i=[],a=void 0}},s=e=>{e!==S&&(e===C?n=C:n===S?n=e:n!==e&&(n=C))};for(let t of e.children){let e=t.type===`element`?w(t):S;s(e),typeof e==`number`?(a!=null&&a!==e&&o(),a??=e,i.push(t)):(o(),r.push(t))}return o(),e.children=r,n}function T(e){let t=e.properties[`data-char`];if(typeof t==`number`)return t}function E(e){if(e.type===`element`){e.properties[`data-char`]=void 0;for(let t of e.children)E(t)}}function ee(e,t){e.properties[`data-char`]=t}function D(e,{state:t,lazyLineAST:n=!1,cacheHtmlStyles:r=!1,useTokenTransformer:i=!1,mergeWhitespaces:a=`always`,decorations:o=[],lineOffsets:s=[]}){let c;for(let t of o){let n=c??=/* @__PURE__ */ new Map,r={...t,start:k(t.start,s),end:k(t.end,s)},i=Math.min(r.end.line,e.length-1);for(let e=r.start.line;e<=i;e++){let t=n.get(e);t??n.set(e,t=[]),t.push(r)}}let l=(e,n)=>{let o;if(i||a!==`never`){let t=``,n=0;for(let r=0;r<e.length;r++){let a=e[r];if(i){let t=a.content.trim();if(t!==``&&t!==a.content){o??=e.slice(0,r);let n=a.content.indexOf(t);n>0&&o.push({content:a.content.slice(0,n),offset:a.offset}),o.push({...a,content:t,offset:a.offset+n});let i=n+t.length;i<a.content.length&&o.push({content:a.content.slice(i),offset:a.offset+i});continue}}else{let i=!!((a.fontStyle??0)&12);if(!i&&/^\s+$/.test(a.content)&&r<e.length-1){o??=e.slice(0,r),t===``&&(n=a.offset),t+=a.content;continue}t!==``&&o!=null&&(i?o.push({content:t,offset:n}):a={...a,content:t+a.content,offset:n},t=``)}o?.push(a)}}o??=e;let s={type:`element`,tagName:t==null?`span`:`div`,properties:t==null?{class:`line`}:{},children:[]},l=c?.get(n),u=l==null?te(s,o,i,r):ne(s,o,l,n,i,r);return i&&u===0&&s.children.push({type:`element`,tagName:`br`,properties:{},children:[]}),i&&l!=null&&w(s),t==null?s:v(s,n+1,t)};if(!n)return e.map(l);let u=Array(e.length);for(let t=0;t<e.length;t++){let n=e[t];y(u,t,()=>l(n,t))}return u}function te(e,t,n,r){let i=0;for(let a of t)a.content!==``&&(e.children.push(O(a,x(a,r),a.content,i,n)),i+=a.content.length);return i}function ne(e,t,n,r,i,a){let o=0;for(let e of t)o+=e.content.length;let s=new h(e,n,r,o),c=0;for(let e of t){let{content:t}=e;if(t===``)continue;let n=c,r=n+t.length,o=x(e,a);for(;c<r;){s.moveTo(c);let a=Math.min(r,s.nextEdge);s.parent.children.push(O(e,o,c===n&&a===r?t:t.slice(c-n,a-n),n,i)),c=a}}return s.moveTo(c),c}function O(e,t,n,r,i){let a=e.htmlAttrs==null?{}:{...e.htmlAttrs};return t!==``&&(a.style=t),i&&(a[`data-char`]=r),{type:`element`,tagName:`span`,properties:a,children:[{type:`text`,value:n}]}}function k(e,t){if(typeof e!=`number`)return e;let n=0,r=t.length;for(;n+1<r;){let i=n+r>>>1;t[i]<=e?n=i:r=i}return{line:n,character:e-(t[n]??0)}}const re=/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i,ie=/^0(?:\.0+)?%?$/;function ae(e){let t=e.indexOf(`(`);if(t<=0||!e.endsWith(`)`))return;let n=e.slice(0,t).trim();if(!/^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)$/i.test(n))return;let r=e.slice(t+1,-1).trim();if(r.length===0)return;let i=r.lastIndexOf(`/`);if(i!==-1)return r.slice(i+1).trim();if(/^(?:rgba|hsla)$/i.test(n)){let e=r.split(`,`);if(e.length===4)return e[3]?.trim()}}function oe(e){let t=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})\b/i.exec(e.trim());if(t==null)return null;let n=t[1],r,i=1;return n.length===3?r=n.split(``).map(e=>e+e).join(``):n.length===6?r=n:(r=n.slice(0,6),i=parseInt(n.slice(6,8),16)/255),[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16),i]}function A(e){if(e==null)return null;let t=oe(e);if(t==null)return null;let n=t[0]/255,r=t[1]/255,i=t[2]/255,a=e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4;return .2126*a(n)+.7152*a(r)+.0722*a(i)}function se(e){if(e==null)return!1;let t=e.trim().toLowerCase();if(t===`transparent`||re.test(t))return!0;let n=ae(t);return n!=null&&ie.test(n)}function ce(e,t,n){if(t==null||n==null)return!1;let r=A(e),i=A(t),a=A(n);return r==null||i==null||a==null?!1:Math.abs(r-a)<Math.abs(r-i)}const le=/* @__PURE__ */ new WeakMap;function ue(e){let t=le.get(e);if(t!=null)return t;let n=e.colors??{},r={...n},i=n[`editor.background`]??e.bg,a=n[`editor.foreground`]??e.fg,o=n[`sideBar.background`]??i,s=n[`sideBar.foreground`]??a;j(r,`editor.background`,i),j(r,`editor.foreground`,a),j(r,`sideBar.background`,o),j(r,`sideBar.foreground`,s),j(r,`input.background`,n[`input.background`]??o),j(r,`sideBarSectionHeader.foreground`,n[`sideBarSectionHeader.foreground`]??s),j(r,`list.activeSelectionForeground`,n[`list.activeSelectionForeground`]??s),j(r,`gitDecoration.addedResourceForeground`,M(n[`gitDecoration.addedResourceForeground`],n[`terminal.ansiGreen`],n[`editorGutter.addedBackground`])),j(r,`gitDecoration.modifiedResourceForeground`,M(n[`gitDecoration.modifiedResourceForeground`],n[`terminal.ansiBlue`],n[`editorGutter.modifiedBackground`])),j(r,`gitDecoration.deletedResourceForeground`,M(n[`gitDecoration.deletedResourceForeground`],n[`terminal.ansiRed`],n[`editorGutter.deletedBackground`]));let c=(se(n[`list.focusOutline`])?void 0:n[`list.focusOutline`])??(se(n.focusBorder)?void 0:n.focusBorder);c==null?delete r[`list.focusOutline`]:r[`list.focusOutline`]=c;let l=n[`list.hoverBackground`];l!=null&&(de(l,o)||ce(l,o,s))&&delete r[`list.hoverBackground`];let u=Object.freeze({...e,colors:Object.freeze(r)});return le.set(e,u),u}function j(e,t,n){n!=null&&n!==``&&(e[t]=n)}function M(...e){for(let t of e)if(t!=null&&t!==``)return t}function de(e,t){return t!=null&&e.toLowerCase()===t.toLowerCase()}function N(e,t){let n=Array.isArray(e)?e:[e];if(n.length>1&&t.name!==`highlights`){for(let e of n){let n=fe(e);t.attachLanguages([n]),o.add(n.name)}return}let r=n.map(fe);t.attachLanguages(r);for(let e of r)o.add(e.name)}function fe(e){let n=e.highlights==null?t:a;return n.get(e.name)??(n.set(e.name,e),e)}async function pe(e){let t=u(e);f(t);try{if(t===`highlights`){let{HighlightsHighlighter:e}=await import(`./highlights-CIgHM7EF-ByjlShdO.js`);return new e}let{ShikiHighlighter:e}=await import(`./shiki-DxP4sN1Z-caEk3oPG.js`);return await e.create(t)}finally{p()}}function P(e,t){for(let n of Array.isArray(e)?e:[e]){let e=typeof n==`string`?t.themeResolver.getResolvedThemes([n])[0]:n;t.themeResolver.seedResolvedTheme(e.name,e)}}const F=/* @__PURE__ */ new Map;let I=0;const L={"1c":`1c`,abap:`abap`,as:`actionscript-3`,ada:`ada`,adb:`ada`,ads:`ada`,adoc:`asciidoc`,asciidoc:`asciidoc`,"component.html":`angular-html`,"component.ts":`angular-ts`,conf:`nginx`,htaccess:`apache`,cls:`tex`,trigger:`apex`,apl:`apl`,applescript:`applescript`,scpt:`applescript`,ara:`ara`,asm:`asm`,s:`riscv`,astro:`astro`,awk:`awk`,bal:`ballerina`,sh:`zsh`,bash:`zsh`,bat:`cmd`,cmd:`cmd`,be:`berry`,beancount:`beancount`,bib:`bibtex`,bicep:`bicep`,"blade.php":`blade`,bsl:`bsl`,c:`c`,h:`objective-cpp`,cs:`csharp`,cpp:`cpp`,cppm:`cpp`,hpp:`cpp`,cc:`cpp`,cxx:`cpp`,hh:`cpp`,cdc:`cdc`,cairo:`cairo`,clar:`clarity`,clj:`clojure`,cljs:`clojure`,cljc:`clojure`,soy:`soy`,cmake:`cmake`,"CMakeLists.txt":`cmake`,cob:`cobol`,cbl:`cobol`,cobol:`cobol`,CODEOWNERS:`codeowners`,ql:`ql`,coffee:`coffeescript`,lisp:`lisp`,cl:`lisp`,lsp:`lisp`,log:`log`,v:`verilog`,cql:`cql`,cr:`crystal`,css:`css`,csv:`csv`,cue:`cue`,cypher:`cypher`,cyp:`cypher`,d:`d`,dart:`dart`,dax:`dax`,desktop:`desktop`,diff:`diff`,patch:`diff`,Dockerfile:`dockerfile`,dockerfile:`dockerfile`,env:`dotenv`,dm:`dream-maker`,edge:`edge`,el:`emacs-lisp`,ex:`elixir`,exs:`elixir`,elm:`elm`,erb:`erb`,erl:`erlang`,hrl:`erlang`,f:`fortran-fixed-form`,for:`fortran-fixed-form`,fs:`fsharp`,fsi:`fsharp`,fsx:`fsharp`,f03:`f03`,f08:`f08`,f18:`f18`,f77:`f77`,f90:`fortran-free-form`,f95:`fortran-free-form`,fnl:`fennel`,fish:`fish`,ftl:`ftl`,tres:`gdresource`,res:`gdresource`,gd:`gdscript`,gdshader:`gdshader`,gs:`genie`,feature:`gherkin`,COMMIT_EDITMSG:`git-commit`,"git-rebase-todo":`git-rebase`,gjs:`glimmer-js`,gleam:`gleam`,gts:`glimmer-ts`,glsl:`glsl`,vert:`glsl`,frag:`glsl`,shader:`shaderlab`,gp:`gnuplot`,plt:`gnuplot`,gnuplot:`gnuplot`,go:`go`,graphql:`graphql`,gql:`graphql`,groovy:`groovy`,gvy:`groovy`,hack:`hack`,haml:`haml`,hbs:`handlebars`,handlebars:`handlebars`,hs:`haskell`,lhs:`haskell`,hx:`haxe`,hcl:`hcl`,hjson:`hjson`,hlsl:`hlsl`,fx:`hlsl`,html:`html`,htm:`html`,http:`http`,rest:`http`,hxml:`hxml`,hy:`hy`,imba:`imba`,ini:`ini`,cfg:`ini`,jade:`pug`,pug:`pug`,java:`java`,js:`javascript`,mjs:`javascript`,cjs:`javascript`,jinja:`jinja`,jinja2:`jinja`,j2:`jinja`,jison:`jison`,jl:`julia`,json:`json`,json5:`json5`,jsonc:`jsonc`,jsonl:`jsonl`,jsonnet:`jsonnet`,libsonnet:`jsonnet`,jssm:`jssm`,jsx:`jsx`,kt:`kotlin`,kts:`kts`,kql:`kusto`,tex:`tex`,ltx:`tex`,lean:`lean4`,less:`less`,liquid:`liquid`,lit:`lit`,ll:`llvm`,logo:`logo`,lua:`lua`,luau:`luau`,Makefile:`makefile`,mk:`makefile`,makefile:`makefile`,md:`markdown`,markdown:`markdown`,marko:`marko`,m:`wolfram`,mat:`matlab`,mdc:`mdc`,mdx:`mdx`,wiki:`wikitext`,mediawiki:`wikitext`,mmd:`mermaid`,mermaid:`mermaid`,mips:`mipsasm`,mojo:`mojo`,"🔥":`mojo`,move:`move`,nar:`narrat`,nf:`nextflow`,nim:`nim`,nims:`nim`,nimble:`nim`,nix:`nix`,nu:`nushell`,mm:`objective-cpp`,ml:`ocaml`,mli:`ocaml`,mll:`ocaml`,mly:`ocaml`,odin:`odin`,pas:`pascal`,p:`pascal`,pl:`prolog`,pm:`perl`,t:`perl`,raku:`raku`,p6:`raku`,pl6:`raku`,php:`php`,phtml:`php`,pls:`plsql`,sql:`sql`,po:`po`,polar:`polar`,pcss:`postcss`,pot:`pot`,potx:`potx`,pq:`powerquery`,pqm:`powerquery`,ps1:`powershell`,psm1:`powershell`,psd1:`powershell`,prisma:`prisma`,pro:`prolog`,P:`prolog`,properties:`properties`,proto:`protobuf`,pp:`puppet`,purs:`purescript`,py:`python`,pyw:`python`,pyi:`python`,BUCK:`python`,BUILD:`python`,PACKAGE:`python`,WORKSPACE:`python`,Tiltfile:`python`,bazel:`python`,bxl:`python`,bzl:`python`,bzlmod:`python`,star:`python`,sky:`python`,qml:`qml`,qmldir:`qmldir`,qss:`qss`,r:`r`,R:`r`,rkt:`racket`,rktl:`racket`,razor:`razor`,cshtml:`razor`,rb:`ruby`,rbw:`ruby`,reg:`reg`,regex:`regexp`,rel:`rel`,rs:`rust`,rst:`rst`,rake:`ruby`,gemspec:`ruby`,jbuilder:`ruby`,builder:`ruby`,rabl:`ruby`,arb:`ruby`,ru:`ruby`,podspec:`ruby`,Gemfile:`ruby`,Rakefile:`ruby`,Guardfile:`ruby`,Capfile:`ruby`,Berksfile:`ruby`,Brewfile:`ruby`,Vagrantfile:`ruby`,Thorfile:`ruby`,Appraisals:`ruby`,Dangerfile:`ruby`,sas:`sas`,sass:`sass`,scala:`scala`,sc:`scala`,scm:`scheme`,ss:`scheme`,sld:`scheme`,scss:`scss`,sdbl:`sdbl`,shadergraph:`shader`,st:`smalltalk`,sol:`solidity`,sparql:`sparql`,rq:`sparql`,spl:`splunk`,config:`ssh-config`,do:`stata`,ado:`stata`,dta:`stata`,styl:`stylus`,stylus:`stylus`,svelte:`svelte`,swift:`swift`,sv:`system-verilog`,svh:`system-verilog`,service:`systemd`,socket:`systemd`,device:`systemd`,timer:`systemd`,talon:`talonscript`,tasl:`tasl`,tcl:`tcl`,templ:`templ`,tf:`tf`,tfvars:`tfvars`,toml:`toml`,ts:`typescript`,mts:`typescript`,cts:`typescript`,tsp:`typespec`,tsv:`tsv`,tsx:`tsx`,ttl:`turtle`,twig:`twig`,typ:`typst`,vv:`v`,vala:`vala`,vapi:`vala`,vb:`vb`,vbs:`vb`,bas:`vb`,vh:`verilog`,vhd:`vhdl`,vhdl:`vhdl`,vim:`vimscript`,vue:`vue`,"vine.ts":`vue-vine`,vy:`vyper`,wasm:`wasm`,wat:`wasm`,wy:`文言`,wgsl:`wgsl`,wit:`wit`,wl:`wolfram`,nb:`wolfram`,xml:`xml`,xsl:`xsl`,xslt:`xsl`,yaml:`yaml`,yml:`yml`,zs:`zenscript`,zig:`zig`,zsh:`zsh`,sty:`tex`};function R(e){let t=z(e);if(t!=null)return t;let n=e.split(/[/\\]/).pop()??e;return n===e?`text`:z(n)??`text`}function z(e){if(F.has(e))return F.get(e)??`text`;if(Object.hasOwn(L,e))return L[e]??null;let t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(t!=null){if(F.has(t[1]))return F.get(t[1])??`text`;if(Object.hasOwn(L,t[1]))return L[t[1]]??`text`}let n=e.match(/\.([^.]+)$/)?.[1]??``;return F.has(n)?F.get(n)??`text`:Object.hasOwn(L,n)?L[n]??`text`:null}function me(e,t){if(e<=I)return!1;F.clear();for(let e in t){let n=t[e];n!=null&&F.set(e,n)}return I=e,!0}function B(e){let t=e.length;return e.charCodeAt(t-1)===10&&(t--,e.charCodeAt(t-1)===13&&t--),e.slice(0,t)}function V(e,t){let n=t===`additions`?e.additionLines:e.deletionLines;if(n.length===0)return!1;if(e.isPartial){let n=e.hunks.at(-1);return n!=null&&!(t===`additions`?n.noEOFCRAdditions:n.noEOFCRDeletions)}return n.at(-1)?.endsWith(`
|
|
3
|
+
`)===!0}function H(e,t){return e-(t===0?0:1)}function U(e,t){return H(e,t)+t}function he({isPartial:e,rangeSize:t,expandedHunks:n,hunkIndex:r,collapsedContextThreshold:i}){let a=Math.max(t,0);if(a===0||e)return{fromStart:0,fromEnd:0,rangeSize:a,collapsedLines:a,renderAll:!1};if(n===!0||a<=i)return{fromStart:a,fromEnd:0,rangeSize:a,collapsedLines:0,renderAll:!0};let o=n?.get(r),s=Math.min(Math.max(o?.fromStart??0,0),a),c=Math.min(Math.max(o?.fromEnd??0,0),a),l=s+c,u=l>=a;return{fromStart:u?a:s,fromEnd:u?0:c,rangeSize:a,collapsedLines:Math.max(a-l,0),renderAll:u}}function ge({fileDiff:e,errorPrefix:t}){let n=e.hunks[e.hunks.length-1];if(n==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0)return 0;let r=e.additionLines.length-U(n.additionStart,n.additionCount),i=e.deletionLines.length-U(n.deletionStart,n.deletionCount);if(r<=0&&i<=0)return 0;if(r!==i)throw Error(`${t}: trailing context mismatch (additions=${r}, deletions=${i}) for ${e.name}`);return Math.min(r,i)}function _e({fileDiff:e,hunkIndex:t,expandedHunks:n,collapsedContextThreshold:r,errorPrefix:i}){if(t!==e.hunks.length-1)return;let a=ge({fileDiff:e,errorPrefix:i});if(a<=0)return;if(n===!0||a<=r)return{fromStart:a,fromEnd:0,rangeSize:a,collapsedLines:0,renderAll:!0};let o=n?.get(e.hunks.length),s=Math.min(Math.max(o?.fromStart??0,0),a);return{fromStart:s,fromEnd:0,rangeSize:a,collapsedLines:a-s,renderAll:s>=a}}function W(e){throw Error(`DiffRowCursor: row has no ${e} line`)}var ve=class{diff;diffStyle;expandedHunks;collapsedContextThreshold;includeTrailingNewline;startingLine;windowEnd;unifiedCount=0;splitCount=0;rowType=`context`;rowHunkIndex=0;rowHunk=void 0;rowHasDeletion=!1;rowHasAddition=!1;index=-1;end=0;secondStretchFirst=0;secondStretchEnd=0;deletionIndexStart=0;deletionNumberStart=0;deletionUnifiedStart=0;additionIndexStart=0;additionNumberStart=0;additionUnifiedStart=0;splitStart=0;firstRowCollapsedBefore=0;collapsedAfterValue=0;collapsedAfterRow=-1;deletionNoEOFCRRow=-1;additionNoEOFCRRow=-1;part=0;walkHunkIndex=0;walkHunk=void 0;contentIndex=0;pendingCollapsed=0;leadingStartRows=0;leadingEndRows=0;leadingRangeSize=0;trailingRows=-1;trailingCollapsed=0;unifiedAt=0;splitAt=0;deletionIndexAt=0;additionIndexAt=0;deletionNumberAt=0;additionNumberAt=0;collapsedAfterAt=-1;constructor({diff:e,diffStyle:t,startingLine:n=0,totalLines:r=1/0,expandedHunks:i,collapsedContextThreshold:a=1,includeTrailingNewline:o=!1}){this.diff=e,this.diffStyle=t,this.startingLine=n,this.windowEnd=n+r,this.expandedHunks=i,this.collapsedContextThreshold=a,this.includeTrailingNewline=o,r===0?this.part=7:n>0&&this.findStartingHunk()}next(){let{index:e,end:t}=this,n=e+1;return n<t?(this.index=n,!0):this.nextRun()}get type(){return this.rowType}get hunkIndex(){return this.rowHunkIndex}get hunk(){return this.rowHunk}get hasDeletion(){return this.rowHasDeletion}get hasAddition(){return this.rowHasAddition}get deletionLineIndex(){let{rowHasDeletion:e,deletionIndexStart:t,index:n}=this;return e||W(`deletion`),t+n}get deletionLineNumber(){let{rowHasDeletion:e,deletionNumberStart:t,index:n}=this;return e||W(`deletion`),t+n}get deletionUnifiedLineIndex(){let{rowHasDeletion:e,deletionUnifiedStart:t,index:n}=this;return e||W(`deletion`),t+n}get deletionNoEOFCR(){let{rowHasDeletion:e,deletionNoEOFCRRow:t,index:n}=this;return e||W(`deletion`),n===t}get additionLineIndex(){let{rowHasAddition:e,additionIndexStart:t,index:n}=this;return e||W(`addition`),t+n}get additionLineNumber(){let{rowHasAddition:e,additionNumberStart:t,index:n}=this;return e||W(`addition`),t+n}get additionUnifiedLineIndex(){let{rowHasAddition:e,additionUnifiedStart:t,index:n}=this;return e||W(`addition`),t+n}get additionNoEOFCR(){let{rowHasAddition:e,additionNoEOFCRRow:t,index:n}=this;return e||W(`addition`),n===t}get unifiedLineIndex(){let{rowHasAddition:e,additionUnifiedStart:t,deletionUnifiedStart:n,index:r}=this;return(e?t:n)+r}get splitLineIndex(){let{splitStart:e,index:t}=this;return e+t}get collapsedBefore(){let{index:e,firstRowCollapsedBefore:t}=this;return e===0?t:0}get collapsedAfter(){let{index:e,collapsedAfterRow:t,collapsedAfterValue:n}=this;return e===t?n:0}findStartingHunk(){let{diff:e,diffStyle:t,startingLine:n}=this,r=e.hunks.length-1,i=0;for(let a of e.hunks){let e=this.getLeadingRegion(a,i),o=e.fromStart+e.fromEnd;if(i===r){let e=this.getTrailingRegion();o+=(e?.fromStart??0)+(e?.fromEnd??0),this.hasTrailingNewlineRow(e?.collapsedLines??0)&&o++}let s=o+a.unifiedLineCount,c=o+a.splitLineCount,{unifiedCount:l,splitCount:u}=this;if((t===`split`?u+c:l+s)>n)break;this.unifiedCount+=s,this.splitCount+=c,i++}this.walkHunkIndex=i}getLeadingRegion(e,t){let{diff:n,expandedHunks:r,collapsedContextThreshold:i}=this;return he({isPartial:n.isPartial,rangeSize:e.collapsedBefore,expandedHunks:r,hunkIndex:t,collapsedContextThreshold:i})}getTrailingRegion(){let{diff:e,expandedHunks:t,collapsedContextThreshold:n}=this;return _e({fileDiff:e,hunkIndex:e.hunks.length-1,expandedHunks:t,collapsedContextThreshold:n,errorPrefix:`DiffRowCursor`})}hasTrailingNewlineRow(e){let{diff:t,includeTrailingNewline:n}=this;return n&&e===0&&V(t,`additions`)}clipRun(e,t,n,r){let{diffStyle:i,startingLine:a,windowEnd:o}=this;if(a===0&&o===1/0)return this.index=0,this.end=e,e>0;if(i!==`both`){let r=i===`unified`?t:n;return this.index=Math.max(0,a-r),this.end=Math.min(e,o-r),this.index<this.end}let s=Math.max(0,a-t),c=Math.min(e,o-t),l=Math.max(0,a-n),u=Math.min(e,o-n),d=0,f=0;if(l<u&&(s<c?l<=c?c=Math.max(c,u):(d=l,f=u):(s=l,c=u)),r!=null){let t=Math.max(0,a-r),n=Math.min(e,o-r);t<n&&(s<c?n>=s?s=t:(d=s,f=c,s=t,c=n):(s=t,c=n))}return s>=c?!1:(this.index=s,this.end=c,d<f&&(this.secondStretchFirst=d,this.secondStretchEnd=f),!0)}isPastWindow(){let{diffStyle:e,unifiedCount:t,splitCount:n,windowEnd:r}=this;return e===`unified`?t>=r:(e===`split`||t>=r)&&n>=r}nextRun(){let{diff:e,secondStretchFirst:t,secondStretchEnd:n}=this;if(t<n)return this.index=t,this.end=n,this.secondStretchFirst=0,this.secondStretchEnd=0,!0;for(;;){if(this.part===7||this.isPastWindow())return this.part=7,!1;switch(this.part){case 0:{let t=e.hunks[this.walkHunkIndex];if(t==null)return this.part=7,!1;this.enterHunk(t),this.part=1;break}case 1:if(this.part=2,this.leadingStartRows>0&&this.startExpandedRun(this.leadingStartRows,this.leadingRangeSize,0))return!0;break;case 2:if(this.part=3,this.leadingEndRows>0&&this.startExpandedRun(this.leadingEndRows,this.leadingEndRows,this.takePendingCollapsed()))return!0;this.startingLine>0&&this.skipBlocksBeforeWindow();break;case 3:{let{walkHunk:e}=this;if(e==null)throw Error(`DiffRowCursor: missing hunk`);let t=e.hunkContent[this.contentIndex];if(t==null){this.part=5;break}let n=this.contentIndex===e.hunkContent.length-1;if(t.type===`context`){if(this.contentIndex++,this.startContextRun(e,t,n))return!0;break}if(this.part=4,this.startChangeRun(e,t,n,!1))return!0;break}case 4:{let{walkHunk:e}=this;if(e==null)throw Error(`DiffRowCursor: missing hunk`);let t=e.hunkContent[this.contentIndex];if(t==null||t.type!==`change`)throw Error(`DiffRowCursor: missing change content`);let n=this.contentIndex===e.hunkContent.length-1;this.part=3,this.contentIndex++;let r=this.startChangeRun(e,t,n,!0),{deletions:i,additions:a}=t;if(this.unifiedCount+=i+a,this.splitCount+=Math.max(i,a),this.unifiedAt+=i+a,this.splitAt+=Math.max(i,a),this.deletionIndexAt+=i,this.additionIndexAt+=a,this.deletionNumberAt+=i,this.additionNumberAt+=a,r)return!0;break}case 5:if(this.part=6,this.trailingRows>0&&this.startTrailingRun())return!0;break;case 6:{let t=this.walkHunkIndex===e.hunks.length-1;if(this.walkHunkIndex++,this.part=0,t&&this.hasTrailingNewlineRow(this.trailingCollapsed)&&this.startTrailingNewlineRun())return!0;break}}}}skipBlocksBeforeWindow(){let{walkHunk:e,diffStyle:t,startingLine:n,unifiedCount:r}=this;if(e==null)throw Error(`DiffRowCursor: missing hunk`);for(;this.contentIndex<e.hunkContent.length;){let r=e.hunkContent[this.contentIndex],i=r.type===`context`?r.lines:r.deletions,a=r.type===`context`?r.lines:r.additions,o=r.type===`context`?r.lines:i+a,s=Math.max(i,a),{unifiedCount:c,splitCount:l}=this;if((t===`split`?l+s:c+o)>n)break;this.unifiedCount+=o,this.splitCount+=s,this.unifiedAt+=o,this.splitAt+=s,this.deletionIndexAt+=i,this.additionIndexAt+=a,this.deletionNumberAt+=i,this.additionNumberAt+=a,this.contentIndex++}this.unifiedCount>r&&(this.pendingCollapsed=0)}enterHunk(e){let{diff:t,diffStyle:n,walkHunkIndex:r}=this,i=H(e.deletionStart,e.deletionCount),a=H(e.additionStart,e.additionCount),o=this.getLeadingRegion(e,r),s=r===t.hunks.length-1?this.getTrailingRegion():void 0;this.walkHunk=e,this.contentIndex=0,this.leadingStartRows=o.fromStart,this.leadingEndRows=o.fromEnd,this.leadingRangeSize=o.rangeSize,this.pendingCollapsed=o.collapsedLines,this.trailingRows=s==null?-1:s.fromStart+s.fromEnd,this.trailingCollapsed=s?.collapsedLines??0,this.unifiedAt=e.unifiedLineStart,this.splitAt=e.splitLineStart,this.deletionIndexAt=!t.isPartial&&e.deletionCount===0?i:e.deletionLineIndex,this.additionIndexAt=!t.isPartial&&e.additionCount===0?a:e.additionLineIndex,this.deletionNumberAt=i+1,this.additionNumberAt=a+1,this.collapsedAfterAt=s!=null&&s.collapsedLines>0&&s.fromStart+s.fromEnd===0?n===`unified`?e.unifiedLineStart+e.unifiedLineCount-1:e.splitLineStart+e.splitLineCount-1:-1}takePendingCollapsed(){let{pendingCollapsed:e}=this;return this.pendingCollapsed=0,e}startExpandedRun(e,t,n){let{unifiedCount:r,splitCount:i,walkHunkIndex:a,walkHunk:o,deletionIndexAt:s,deletionNumberAt:c,additionIndexAt:l,additionNumberAt:u,unifiedAt:d,splitAt:f}=this;return this.rowType=`context-expanded`,this.rowHunkIndex=a,this.rowHunk=o,this.rowHasDeletion=!0,this.rowHasAddition=!0,this.deletionIndexStart=s-t,this.deletionNumberStart=c-t,this.deletionUnifiedStart=d-t,this.additionIndexStart=l-t,this.additionNumberStart=u-t,this.additionUnifiedStart=d-t,this.splitStart=f-t,this.firstRowCollapsedBefore=n,this.collapsedAfterRow=-1,this.deletionNoEOFCRRow=-1,this.additionNoEOFCRRow=-1,this.unifiedCount+=e,this.splitCount+=e,this.clipRun(e,r,i)}startContextRun(e,t,n){let{lines:r}=t,{diffStyle:i,unifiedCount:a,splitCount:o,walkHunkIndex:s,deletionIndexAt:c,deletionNumberAt:l,additionIndexAt:u,additionNumberAt:d,unifiedAt:f,splitAt:p}=this,m=r>0;return m&&(this.rowType=`context`,this.rowHunkIndex=s,this.rowHunk=e,this.rowHasDeletion=!0,this.rowHasAddition=!0,this.deletionIndexStart=c,this.deletionNumberStart=l,this.deletionUnifiedStart=f,this.additionIndexStart=u,this.additionNumberStart=d,this.additionUnifiedStart=f,this.splitStart=p,this.firstRowCollapsedBefore=this.takePendingCollapsed(),this.setCollapsedAfterRow(i===`unified`?f:p),this.deletionNoEOFCRRow=n&&e.noEOFCRDeletions?r-1:-1,this.additionNoEOFCRRow=n&&e.noEOFCRAdditions?r-1:-1),this.unifiedCount+=r,this.splitCount+=r,this.unifiedAt+=r,this.splitAt+=r,this.deletionIndexAt+=r,this.additionIndexAt+=r,this.deletionNumberAt+=r,this.additionNumberAt+=r,m&&this.clipRun(r,a,o)}startChangeRun(e,t,n,r){let{deletions:i,additions:a}=t,{diffStyle:o,unifiedCount:s,splitCount:c,walkHunkIndex:l,deletionIndexAt:u,deletionNumberAt:d,additionIndexAt:f,additionNumberAt:p,unifiedAt:m,splitAt:h}=this,g=o===`unified`,_=Math.min(i,a),v=g?r?i:0:r?_:0,y=g?r?a:i:r?Math.max(i,a)-_:_;if(y<=0)return!1;let b=g?!r:!r||i>a,x=g?r:!r||a>i;this.rowType=`change`,this.rowHunkIndex=l,this.rowHunk=e,this.rowHasDeletion=b,this.rowHasAddition=x;let S=g?0:v;this.deletionIndexStart=u+S,this.deletionNumberStart=d+S,this.deletionUnifiedStart=m+S,this.additionIndexStart=f+S,this.additionNumberStart=p+S,this.additionUnifiedStart=m+i+S,this.splitStart=h+S,this.firstRowCollapsedBefore=this.takePendingCollapsed(),this.setCollapsedAfterRow(g?m+v:h+v);let C=g||r||i===a;this.deletionNoEOFCRRow=n&&b&&C&&e.noEOFCRDeletions?y-1:-1,this.additionNoEOFCRRow=n&&x&&C&&e.noEOFCRAdditions?y-1:-1;let w=s+v,T=s+i+S;return this.clipRun(y,b?w:T,c+v,b&&x?T:void 0)}startTrailingRun(){let{diff:e,trailingRows:t,trailingCollapsed:n,unifiedCount:r,splitCount:i,deletionIndexAt:a,deletionNumberAt:o,additionIndexAt:s,additionNumberAt:c,unifiedAt:l,splitAt:u}=this;return this.rowType=`context-expanded`,this.rowHunkIndex=e.hunks.length,this.rowHunk=void 0,this.rowHasDeletion=!0,this.rowHasAddition=!0,this.deletionIndexStart=a,this.deletionNumberStart=o,this.deletionUnifiedStart=l,this.additionIndexStart=s,this.additionNumberStart=c,this.additionUnifiedStart=l,this.splitStart=u,this.firstRowCollapsedBefore=0,this.collapsedAfterValue=n,this.collapsedAfterRow=t-1,this.deletionNoEOFCRRow=-1,this.additionNoEOFCRRow=-1,this.unifiedCount+=t,this.splitCount+=t,this.clipRun(t,r,i)}startTrailingNewlineRun(){let{diff:e,trailingRows:t,unifiedCount:n,splitCount:r,deletionIndexAt:i,deletionNumberAt:a,additionIndexAt:o,additionNumberAt:s,unifiedAt:c,splitAt:l}=this,u=Math.max(t,0),d=V(e,`deletions`),f=o+u,p=i+u;return this.rowType=d?`context`:`change`,this.rowHunkIndex=e.hunks.length,this.rowHunk=void 0,this.rowHasDeletion=d,this.rowHasAddition=!0,this.deletionIndexStart=p,this.deletionNumberStart=a+u,this.deletionUnifiedStart=c+u,this.additionIndexStart=f,this.additionNumberStart=s+u,this.additionUnifiedStart=c+u,this.splitStart=l+u,this.firstRowCollapsedBefore=0,this.collapsedAfterRow=-1,this.deletionNoEOFCRRow=-1,this.additionNoEOFCRRow=-1,this.unifiedCount++,this.splitCount++,this.clipRun(1,n,r)}setCollapsedAfterRow(e){let{collapsedAfterAt:t,trailingCollapsed:n}=this;t===-1?this.collapsedAfterRow=-1:(this.collapsedAfterValue=n,this.collapsedAfterRow=t-e)}};function G(e){return`--${e===`token`?`diffs-token`:`diffs`}-`}function ye({theme:t=e,highlighter:n,prefix:r}){let i=``;if(typeof t==`string`){let e=n.getTheme(t),a=K(e,n);i+=`color:${a.fg};`,i+=`background-color:${a.bg};`,i+=`${G(`global`)}fg:${a.fg};`,i+=`${G(`global`)}bg:${a.bg};`,i+=q(e,r),i+=J(e)}else{let e=n.getTheme(t.dark),r=K(e,n);i+=`${G(`global`)}dark:${r.fg};`,i+=`${G(`global`)}dark-bg:${r.bg};`,i+=q(e,`dark`),i+=J(e,`dark`),e=n.getTheme(t.light),r=K(e,n),i+=`${G(`global`)}light:${r.fg};`,i+=`${G(`global`)}light-bg:${r.bg};`,i+=q(e,`light`),i+=J(e,`light`)}return i}function K(e,t){if(t.name===`highlights`&&e.zed?.cssVariables===!0){let e=G(`token`);return{fg:`var(${e}foreground)`,bg:`var(${e}background)`}}return ue(e)}function q(e,t){t=t==null?``:`${t}-`;let n=``,r=e.colors?.[`gitDecoration.addedResourceForeground`]??e.colors?.[`terminal.ansiGreen`];r!=null&&(n+=`${G(`global`)}${t}addition-color:${r};`);let i=e.colors?.[`gitDecoration.deletedResourceForeground`]??e.colors?.[`terminal.ansiRed`];i!=null&&(n+=`${G(`global`)}${t}deletion-color:${i};`);let a=e.colors?.[`gitDecoration.modifiedResourceForeground`]??e.colors?.[`terminal.ansiBlue`];return a!=null&&(n+=`${G(`global`)}${t}modified-color:${a};`),n}function J(e,t){t=t==null?``:`${t}-`;let n=G(`global`),r=e.colors,i=``,a=r?.[`editor.findMatchHighlightBackground`],o=r?.[`editor.findMatchHighlightForeground`];a!=null&&o!=null&&(i+=`${n}${t}bg-search-match-theme:${a};`,i+=`${n}${t}fg-search-match-theme:${o};`);let s=r?.[`editor.findMatchBackground`],c=r?.[`editor.findMatchForeground`];return s!=null&&c!=null&&(i+=`${n}${t}bg-search-match-current-theme:${s};`,i+=`${n}${t}fg-search-match-current-theme:${c};`),i}function be(e,t,n){return{lang:e,...typeof t==`string`?{theme:t}:{themes:t},defaultColor:!1,cssVariablePrefix:G(`token`),tokenizeMaxLineLength:n,tokenizeTimeLimit:0}}const xe={forcePlainText:!1};function Se(e,t,n,{forcePlainText:r,lazyLineAST:i=!1,startingLine:a,totalLines:o,expandedHunks:s,collapsedContextThreshold:c=1}=xe){r?(a??=0,o??=1/0):(a=0,o=1/0);let l=a>0||o<1/0;i&&=!r&&!n.useTokenTransformer;let u=typeof n.theme==`string`?t.getTheme(n.theme).type:void 0,d=ye({theme:n.theme,highlighter:t}),f={deletionLines:[],additionLines:[]},p=!r&&!e.isPartial,h=r?s:void 0,g=/* @__PURE__ */ new Map;function _(e){let t=p?0:e,n=g.get(t)??Ce();return g.set(t,n),n}function v(e,t,n,r){if(l){let e=n.at(-1);(e==null||e.targetIndex+e.count!==t)&&(e={targetIndex:t,originalOffset:r.length,count:0},n.push(e)),e.count++}r.push(e)}let b=new ve({diff:e,diffStyle:`both`,startingLine:a,totalLines:o,expandedHunks:!l||h,collapsedContextThreshold:c});for(;b.next();){let{hunkIndex:t,type:n,splitLineIndex:r}=b,i=_(t);if(b.hasDeletion){let{deletionLineIndex:t,deletionLineNumber:a,deletionUnifiedLineIndex:o}=b;v(e.deletionLines[t],t,i.deletionSegments,i.deletionContent),i.deletionInfo.push({type:n===`change`?`change-deletion`:n,lineNumber:a,altLineNumber:n===`change`?void 0:b.additionLineNumber,lineIndex:`${o},${r}`})}if(b.hasAddition){let{additionLineIndex:t,additionLineNumber:a,additionUnifiedLineIndex:o}=b;v(e.additionLines[t],t,i.additionSegments,i.additionContent),i.additionInfo.push({type:n===`change`?`change-addition`:n,lineNumber:a,altLineNumber:n===`change`?void 0:b.deletionLineNumber,lineIndex:`${o},${r}`})}}for(let a of g.values()){if(a.deletionContent.length===0&&a.additionContent.length===0)continue;let o={name:e.prevName??e.name,contents:a.deletionContent.value},s={name:e.name,contents:a.additionContent.value},{deletionLines:c,additionLines:l}=we({deletionFile:o,deletionInfo:a.deletionInfo,additionFile:s,additionInfo:a.additionInfo,highlighter:t,options:n,languageOverride:r?`text`:e.lang,lazyLineAST:i});if(p)f.deletionLines=c,f.additionLines=l;else for(let[e,t,n]of[[f.deletionLines,c,a.deletionSegments],[f.additionLines,l,a.additionSegments]])if(n.length>0)for(let r of n)for(let n=0;n<r.count;n++)e[r.targetIndex+n]=t[r.originalOffset+n];else if(i){let n=e.length;for(let r=0;r<t.length;r++)y(e,n+r,()=>t[r])}else m(e,t)}return{code:f,themeStyles:d,baseThemeType:u}}function Ce(){return{deletionContent:{push(e){this.value+=e,this.length++},value:``,length:0},additionContent:{push(e){this.value+=e,this.length++},value:``,length:0},deletionInfo:[],additionInfo:[],deletionSegments:[],additionSegments:[]}}function we({lazyLineAST:e,deletionFile:t,additionFile:n,deletionInfo:r,additionInfo:i,highlighter:a,languageOverride:o,options:{theme:s,useTokenTransformer:c,tokenizeMaxLineLength:l}}){let u=(t,n)=>t.contents===``?[]:D(a.codeToTokens(B(t.contents),be(o??R(t.name),s,l)).tokens,{state:{lineInfo:n},useTokenTransformer:c,lazyLineAST:e,cacheHtmlStyles:a.name===`highlights`});return{deletionLines:u(t,r),additionLines:u(n,i)}}function Te(e){let t=[0],n=e.indexOf(`\r`),r=e.indexOf(`
|
|
4
|
+
`),i=0,a=0;for(;n!==-1||r!==-1;){let o;if(n!==-1&&(r===-1||n<r)?r===n+1?(o=r+1,n=e.indexOf(`\r`,o),r=e.indexOf(`
|
|
5
|
+
`,o)):(o=n+1,n=e.indexOf(`\r`,o)):(o=r+1,r=e.indexOf(`
|
|
6
|
+
`,o)),t.push(o),++a===4){if(o-i<=40){for(let n=o;n<e.length;n++){let r=e.charCodeAt(n);(r===10||r===13)&&(r===13&&n+1<e.length&&e.charCodeAt(n+1)===10&&n++,t.push(n+1))}return t}i=o,a=0}}return t}function Ee(e){let t=Te(e),n=t.length,r=Array(n);for(let i=0;i<n;i++){let a=i+1<n?t[i+1]:e.length;r[i]=e.slice(t[i],a)}return r}const De={forcePlainText:!1};function Oe(e,t,{theme:n,tokenizeMaxLineLength:r,useTokenTransformer:i},{forcePlainText:a,lazyLineAST:o=!1,startingLine:s,totalLines:c,lines:l}=De){a?(s??=0,c??=1/0):(s=0,c=1/0);let u=s>0||c<1/0,d=u?l??Ee(e.contents):void 0,f={lineInfo:[]},p=a?`text`:e.lang??R(e.name),h=typeof n==`string`?t.getTheme(n).type:void 0,g=ye({theme:n,highlighter:t});if(d!=null&&Math.min(s+c,d.length)<=s)return{code:Array(s),themeStyles:g,baseThemeType:h};f.lineInfo=e=>({type:`context`,lineIndex:e-1+s,lineNumber:e+s});let _=D(t.codeToTokens(ke(d==null?e.contents:Ae(d,s,c)),be(p,n,r)).tokens,{state:f,useTokenTransformer:i,lazyLineAST:o&&!a&&!i,cacheHtmlStyles:t.name===`highlights`}),v=u?Array(s):_;return u&&m(v,_),{code:v,themeStyles:g,baseThemeType:h}}function ke(e){return e.replace(/\r(?!\n)/g,`
|
|
7
|
+
`)}function Ae(e,t,n){if(e.length===0)return``;let r=Math.min(t+n,e.length),i=e.slice(t,r).join(``);return r<e.length?B(i):i}function Y(e){let t=new Int32Array(Math.max(32,Math.min(65536,e.length*32))),n=0,r=new Uint32Array(e.length*2),i=[],a=/* @__PURE__ */ new Map,o=[],s=``;function c(e){if(n===t.length){let e=new Int32Array(t.length*2);e.set(t),t=e}t[n++]=e}function l(e){let t=a.get(e);return t??(t=i.length,i.push(e),a.set(e,t)),t}function u(e){let t=0;for(let n in e)t++;if(e?.type===`text`&&t===2)c(1),c(e.value.length),s+=e.value;else if(e?.type===`element`&&t===4&&e.properties!=null&&Object.getPrototypeOf(e.properties)===Object.prototype){c(2),c(l(e.tagName));let t=0;for(let n in e.properties)t++;c(t);for(let t in e.properties){let n=e.properties[t];c(l(t)),n===void 0?c(0):n===null?c(1):n===!0?c(2):n===!1?c(3):typeof n==`string`?(c(4),c(l(n))):typeof n==`number`&&(n|0)===n&&!Object.is(n,-0)?(c(5),c(n)):(c(6),c(o.length),o.push(n))}c(e.children.length);for(let t=0;t<e.children.length;t++)t in e.children?u(e.children[t]):c(0)}else c(3),c(o.length),o.push(e)}for(let t=0;t<e.length;t++)r[t*2]=n,r[t*2+1]=s.length,t in e?u(e[t]):c(0);return{ops:t.subarray(0,n),offsets:r,strings:i,text:s,extras:o}}let je,X=!1,Z={theme:e,useTokenTransformer:!1,tokenizeMaxLineLength:1e3,lineDiffType:`word-alt`,maxLineDiffLength:1e3};const Me=/(?:)/;function Ne(){self.addEventListener(`error`,e=>{console.error(`[Diffs Worker] Unhandled error:`,e.error)}),self.addEventListener(`message`,e=>{Pe(e.data)})}async function Pe(e){try{switch(e.type){case`initialize`:await Fe(e);break;case`set-render-options`:await Ie(e);break;case`file`:await Le(e);break;case`diff`:await Re(e);break;default:throw Error(`Unknown request type: ${e.type}`)}}catch(t){console.error(`Worker error:`,t),ze(e.id,t)}finally{Me.exec(``)}}async function Fe({id:e,renderOptions:t,preferredHighlighter:n,resolvedThemes:r,resolvedLanguages:i,customExtensionsVersion:a,customExtensionMap:o,resultFormat:s}){let c=Q(n);`then`in c&&(c=await c),$({customExtensionsVersion:a,customExtensionMap:o}),P(r,c),i!=null&&N(i,c),Z=t,X=s===`hast-ops-v1`,postMessage({type:`success`,id:e,requestType:`initialize`,sentAt:Date.now()})}async function Ie({id:e,renderOptions:t,resolvedThemes:n}){let r=Q();`then`in r&&(r=await r),P(n,r),Z=t,postMessage({type:`success`,id:e,requestType:`set-render-options`,sentAt:Date.now()})}async function Le({id:e,file:t,resolvedLanguages:n,customExtensionsVersion:r,customExtensionMap:i}){let a=Q();`then`in a&&(a=await a),$({customExtensionsVersion:r,customExtensionMap:i}),n!=null&&N(n,a);let o={theme:Z.theme,useTokenTransformer:Z.useTokenTransformer,tokenizeMaxLineLength:Z.tokenizeMaxLineLength},s=Oe(t,a,o),c=X?Y(s.code):void 0,l={type:`success`,requestType:`file`,id:e,result:s,options:o,sentAt:Date.now()};postMessage(c==null?l:{...l,result:{...s,code:c}},c==null?[]:[c.ops.buffer,c.offsets.buffer])}async function Re({id:e,diff:t,resolvedLanguages:n,customExtensionsVersion:r,customExtensionMap:i}){let a=Q();`then`in a&&(a=await a),$({customExtensionsVersion:r,customExtensionMap:i}),n!=null&&N(n,a);let o=Se(t,a,Z),s=X?{deletionLines:Y(o.code.deletionLines),additionLines:Y(o.code.additionLines)}:void 0,c={type:`success`,requestType:`diff`,id:e,result:o,options:Z,sentAt:Date.now()};postMessage(s==null?c:{...c,result:{...o,code:s}},s==null?[]:[s.deletionLines.ops.buffer,s.deletionLines.offsets.buffer,s.additionLines.ops.buffer,s.additionLines.offsets.buffer])}function Q(e){return je??=pe(e),je}function $({customExtensionsVersion:e,customExtensionMap:t}){if(e!=null||t!=null){if(e==null||t==null)throw Error(`Worker request must include both customExtensionsVersion and customExtensionMap`);me(e,t)}}function ze(e,t){let n={type:`error`,id:e,error:t instanceof Error?t.message:String(t),stack:t instanceof Error?t.stack:void 0};postMessage(n)}Ne();export{i as a,n as c,p as d,D as f,r as i,f as l,G as n,a as o,l as r,t as s,N as t,m as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./java-r7y4bhRH.js";var t=Object.freeze(JSON.parse(`{"displayName":"XML","name":"xml","patterns":[{"begin":"(<\\\\?)\\\\s*([-0-9A-Z_a-z]+)","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.xml"}},"end":"(\\\\?>)","name":"meta.tag.preprocessor.xml","patterns":[{"match":" ([-A-Za-z]+)","name":"entity.other.attribute-name.xml"},{"include":"#doublequotedString"},{"include":"#singlequotedString"}]},{"begin":"(<!)(DOCTYPE)\\\\s+([:A-Z_a-z][-.0-:A-Z_a-z]*)","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"keyword.other.doctype.xml"},"3":{"name":"variable.language.documentroot.xml"}},"end":"\\\\s*(>)","name":"meta.tag.sgml.doctype.xml","patterns":[{"include":"#internalSubset"}]},{"include":"#comments"},{"begin":"(<)((?:([-0-9A-Z_a-z]+)(:))?([-0-:A-Z_a-z]+))(?=(\\\\s[^>]*)?></\\\\2>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.xml"},"3":{"name":"entity.name.tag.namespace.xml"},"4":{"name":"punctuation.separator.namespace.xml"},"5":{"name":"entity.name.tag.localname.xml"}},"end":"(>)(</)((?:([-0-9A-Z_a-z]+)(:))?([-0-:A-Z_a-z]+))(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"punctuation.definition.tag.xml"},"3":{"name":"entity.name.tag.xml"},"4":{"name":"entity.name.tag.namespace.xml"},"5":{"name":"punctuation.separator.namespace.xml"},"6":{"name":"entity.name.tag.localname.xml"},"7":{"name":"punctuation.definition.tag.xml"}},"name":"meta.tag.no-content.xml","patterns":[{"include":"#tagStuff"}]},{"begin":"(</?)(?:([-.\\\\w]+)((:)))?([-.:\\\\w]+)","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.namespace.xml"},"3":{"name":"entity.name.tag.xml"},"4":{"name":"punctuation.separator.namespace.xml"},"5":{"name":"entity.name.tag.localname.xml"}},"end":"(/?>)","name":"meta.tag.xml","patterns":[{"include":"#tagStuff"}]},{"include":"#entity"},{"include":"#bare-ampersand"},{"begin":"<%@","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.xml"}},"end":"%>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.xml"}},"name":"source.java-props.embedded.xml","patterns":[{"match":"page|include|taglib","name":"keyword.other.page-props.xml"}]},{"begin":"<%[!=]?(?!--)","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.xml"}},"end":"(?!--)%>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.xml"}},"name":"source.java.embedded.xml","patterns":[{"include":"source.java"}]},{"begin":"<!\\\\[CDATA\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"]]>","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.unquoted.cdata.xml"}],"repository":{"EntityDecl":{"begin":"(<!)(ENTITY)\\\\s+(%\\\\s+)?([:A-Z_a-z][-.0-:A-Z_a-z]*)(\\\\s+(?:SYSTEM|PUBLIC)\\\\s+)?","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"keyword.other.entity.xml"},"3":{"name":"punctuation.definition.entity.xml"},"4":{"name":"variable.language.entity.xml"},"5":{"name":"keyword.other.entitytype.xml"}},"end":"(>)","patterns":[{"include":"#doublequotedString"},{"include":"#singlequotedString"}]},"bare-ampersand":{"match":"&","name":"invalid.illegal.bad-ampersand.xml"},"comments":{"patterns":[{"begin":"<%--","captures":{"0":{"name":"punctuation.definition.comment.xml"},"end":"--%>","name":"comment.block.xml"}},{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.xml"}},"end":"-->","name":"comment.block.xml","patterns":[{"begin":"--(?!>)","captures":{"0":{"name":"invalid.illegal.bad-comments-or-CDATA.xml"}}}]}]},"doublequotedString":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.quoted.double.xml","patterns":[{"include":"#entity"},{"include":"#bare-ampersand"}]},"entity":{"captures":{"1":{"name":"punctuation.definition.constant.xml"},"3":{"name":"punctuation.definition.constant.xml"}},"match":"(&)([:A-Z_a-z][-.0-:A-Z_a-z]*|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.xml"},"internalSubset":{"begin":"(\\\\[)","captures":{"1":{"name":"punctuation.definition.constant.xml"}},"end":"(])","name":"meta.internalsubset.xml","patterns":[{"include":"#EntityDecl"},{"include":"#parameterEntity"},{"include":"#comments"}]},"parameterEntity":{"captures":{"1":{"name":"punctuation.definition.constant.xml"},"3":{"name":"punctuation.definition.constant.xml"}},"match":"(%)([:A-Z_a-z][-.0-:A-Z_a-z]*)(;)","name":"constant.character.parameter-entity.xml"},"singlequotedString":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.quoted.single.xml","patterns":[{"include":"#entity"},{"include":"#bare-ampersand"}]},"tagStuff":{"patterns":[{"captures":{"1":{"name":"entity.other.attribute-name.namespace.xml"},"2":{"name":"entity.other.attribute-name.xml"},"3":{"name":"punctuation.separator.namespace.xml"},"4":{"name":"entity.other.attribute-name.localname.xml"}},"match":"(?:^|\\\\s+)(?:([-.\\\\w]+)((:)))?([-.:\\\\w]+)\\\\s*="},{"include":"#doublequotedString"},{"include":"#singlequotedString"}]}},"scopeName":"text.xml","embeddedLangs":["java"]}`)),n=[...e,t];export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=[Object.freeze(JSON.parse(`{"displayName":"YAML","fileTypes":["yaml","yml","rviz","reek","clang-format","yaml-tmlanguage","syntax","sublime-syntax"],"firstLineMatch":"^%YAML( ?1.\\\\d+)?","name":"yaml","patterns":[{"include":"#comment"},{"include":"#property"},{"include":"#directive"},{"match":"^---","name":"entity.other.document.begin.yaml"},{"match":"^\\\\.{3}","name":"entity.other.document.end.yaml"},{"include":"#node"}],"repository":{"block-collection":{"patterns":[{"include":"#block-sequence"},{"include":"#block-mapping"}]},"block-mapping":{"patterns":[{"include":"#block-pair"}]},"block-node":{"patterns":[{"include":"#prototype"},{"include":"#block-scalar"},{"include":"#block-collection"},{"include":"#flow-scalar-plain-out"},{"include":"#flow-node"}]},"block-pair":{"patterns":[{"begin":"\\\\?","beginCaptures":{"1":{"name":"punctuation.definition.key-value.begin.yaml"}},"end":"(?=\\\\?)|^ *(:)|(:)","endCaptures":{"1":{"name":"punctuation.separator.key-value.mapping.yaml"},"2":{"name":"invalid.illegal.expected-newline.yaml"}},"name":"meta.block-mapping.yaml","patterns":[{"include":"#block-node"}]},{"begin":"(?=(?:[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S)([^:\\\\s]|:\\\\S|\\\\s+(?![#\\\\s]))*\\\\s*:(\\\\s|$))","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","patterns":[{"include":"#flow-scalar-plain-out-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S","beginCaptures":{"0":{"name":"entity.name.tag.yaml"}},"contentName":"entity.name.tag.yaml","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","name":"string.unquoted.plain.out.yaml"}]},{"match":":(?=\\\\s|$)","name":"punctuation.separator.key-value.mapping.yaml"}]},"block-scalar":{"begin":"(?:(\\\\|)|(>))([1-9])?([-+])?(.*\\\\n?)","beginCaptures":{"1":{"name":"keyword.control.flow.block-scalar.literal.yaml"},"2":{"name":"keyword.control.flow.block-scalar.folded.yaml"},"3":{"name":"constant.numeric.indentation-indicator.yaml"},"4":{"name":"storage.modifier.chomping-indicator.yaml"},"5":{"patterns":[{"include":"#comment"},{"match":".+","name":"invalid.illegal.expected-comment-or-newline.yaml"}]}},"end":"^(?=\\\\S)|(?!\\\\G)","patterns":[{"begin":"^( +)(?! )","end":"^(?!\\\\1|\\\\s*$)","name":"string.unquoted.block.yaml"}]},"block-sequence":{"match":"(-)(?!\\\\S)","name":"punctuation.definition.block.sequence.item.yaml"},"comment":{"begin":"(?:^([\\\\t ]*)|[\\\\t ]+)(?=#\\\\p{print}*$)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.yaml"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.yaml"}},"end":"\\\\n","name":"comment.line.number-sign.yaml"}]},"directive":{"begin":"^%","beginCaptures":{"0":{"name":"punctuation.definition.directive.begin.yaml"}},"end":"(?=$|[\\\\t ]+($|#))","name":"meta.directive.yaml","patterns":[{"captures":{"1":{"name":"keyword.other.directive.yaml.yaml"},"2":{"name":"constant.numeric.yaml-version.yaml"}},"match":"\\\\G(YAML)[\\\\t ]+(\\\\d+\\\\.\\\\d+)"},{"captures":{"1":{"name":"keyword.other.directive.tag.yaml"},"2":{"name":"storage.type.tag-handle.yaml"},"3":{"name":"support.type.tag-prefix.yaml"}},"match":"\\\\G(TAG)(?:[\\\\t ]+(!(?:[-0-9A-Za-z]*!)?)(?:[\\\\t ]+(!(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])*|(?![]!,\\\\[{}])(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])+))?)?"},{"captures":{"1":{"name":"support.other.directive.reserved.yaml"},"2":{"name":"string.unquoted.directive-name.yaml"},"3":{"name":"string.unquoted.directive-parameter.yaml"}},"match":"\\\\G(\\\\w+)(?:[\\\\t ]+(\\\\w+)(?:[\\\\t ]+(\\\\w+))?)?"},{"match":"\\\\S+","name":"invalid.illegal.unrecognized.yaml"}]},"flow-alias":{"captures":{"1":{"name":"keyword.control.flow.alias.yaml"},"2":{"name":"punctuation.definition.alias.yaml"},"3":{"name":"variable.other.alias.yaml"},"4":{"name":"invalid.illegal.character.anchor.yaml"}},"match":"((\\\\*))([^],/\\\\[{}\\\\s]+)([^],}\\\\s]\\\\S*)?"},"flow-collection":{"patterns":[{"include":"#flow-sequence"},{"include":"#flow-mapping"}]},"flow-mapping":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.mapping.begin.yaml"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.mapping.end.yaml"}},"name":"meta.flow-mapping.yaml","patterns":[{"include":"#prototype"},{"match":",","name":"punctuation.separator.mapping.yaml"},{"include":"#flow-pair"}]},"flow-node":{"patterns":[{"include":"#prototype"},{"include":"#flow-alias"},{"include":"#flow-collection"},{"include":"#flow-scalar"}]},"flow-pair":{"patterns":[{"begin":"\\\\?","beginCaptures":{"0":{"name":"punctuation.definition.key-value.begin.yaml"}},"end":"(?=[],}])","name":"meta.flow-pair.explicit.yaml","patterns":[{"include":"#prototype"},{"include":"#flow-pair"},{"include":"#flow-node"},{"begin":":(?=\\\\s|$|[],\\\\[{}])","beginCaptures":{"0":{"name":"punctuation.separator.key-value.mapping.yaml"}},"end":"(?=[],}])","patterns":[{"include":"#flow-value"}]}]},{"begin":"(?=(?:[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s])([^],:\\\\[{}\\\\s]|:[^],\\\\[{}\\\\s]|\\\\s+(?![#\\\\s]))*\\\\s*:(\\\\s|$))","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"meta.flow-pair.key.yaml","patterns":[{"include":"#flow-scalar-plain-in-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s]","beginCaptures":{"0":{"name":"entity.name.tag.yaml"}},"contentName":"entity.name.tag.yaml","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"string.unquoted.plain.in.yaml"}]},{"include":"#flow-node"},{"begin":":(?=\\\\s|$|[],\\\\[{}])","captures":{"0":{"name":"punctuation.separator.key-value.mapping.yaml"}},"end":"(?=[],}])","name":"meta.flow-pair.yaml","patterns":[{"include":"#flow-value"}]}]},"flow-scalar":{"patterns":[{"include":"#flow-scalar-double-quoted"},{"include":"#flow-scalar-single-quoted"},{"include":"#flow-scalar-plain-in"}]},"flow-scalar-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}},"name":"string.quoted.double.yaml","patterns":[{"match":"\\\\\\\\([ \\"/0LN\\\\\\\\_abefnprtv]|x\\\\d\\\\d|u\\\\d{4}|U\\\\d{8})","name":"constant.character.escape.yaml"},{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.double-quoted.newline.yaml"}]},"flow-scalar-plain-in":{"patterns":[{"include":"#flow-scalar-plain-in-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s]","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"string.unquoted.plain.in.yaml"}]},"flow-scalar-plain-in-implicit-type":{"patterns":[{"captures":{"1":{"name":"constant.language.null.yaml"},"2":{"name":"constant.language.boolean.yaml"},"3":{"name":"constant.numeric.integer.yaml"},"4":{"name":"constant.numeric.float.yaml"},"5":{"name":"constant.other.timestamp.yaml"},"6":{"name":"constant.language.value.yaml"},"7":{"name":"constant.language.merge.yaml"}},"match":"(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([-+]?0b[01_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[_\\\\h]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([-+]?(?:[0-9][0-9_]*)?\\\\.[.0-9]*(?:[Ee][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))|(\\\\d{4}-\\\\d{2}-\\\\d{2}|\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}(?:[Tt]|[\\\\t ]+)\\\\d{1,2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d*)?(?:[\\\\t ]*Z|[-+]\\\\d{1,2}(?::\\\\d{1,2})?)?)|(=)|(<<))(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])"}]},"flow-scalar-plain-out":{"patterns":[{"include":"#flow-scalar-plain-out-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","name":"string.unquoted.plain.out.yaml"}]},"flow-scalar-plain-out-implicit-type":{"patterns":[{"captures":{"1":{"name":"constant.language.null.yaml"},"2":{"name":"constant.language.boolean.yaml"},"3":{"name":"constant.numeric.integer.yaml"},"4":{"name":"constant.numeric.float.yaml"},"5":{"name":"constant.other.timestamp.yaml"},"6":{"name":"constant.language.value.yaml"},"7":{"name":"constant.language.merge.yaml"}},"match":"(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([-+]?0b[01_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[_\\\\h]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([-+]?(?:[0-9][0-9_]*)?\\\\.[.0-9]*(?:[Ee][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))|(\\\\d{4}-\\\\d{2}-\\\\d{2}|\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}(?:[Tt]|[\\\\t ]+)\\\\d{1,2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d*)?(?:[\\\\t ]*Z|[-+]\\\\d{1,2}(?::\\\\d{1,2})?)?)|(=)|(<<))(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))"}]},"flow-scalar-single-quoted":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"end":"'(?!')","endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}},"name":"string.quoted.single.yaml","patterns":[{"match":"''","name":"constant.character.escape.single-quoted.yaml"}]},"flow-sequence":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.sequence.begin.yaml"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.sequence.end.yaml"}},"name":"meta.flow-sequence.yaml","patterns":[{"include":"#prototype"},{"match":",","name":"punctuation.separator.sequence.yaml"},{"include":"#flow-pair"},{"include":"#flow-node"}]},"flow-value":{"patterns":[{"begin":"\\\\G(?![],}])","end":"(?=[],}])","name":"meta.flow-pair.value.yaml","patterns":[{"include":"#flow-node"}]}]},"node":{"patterns":[{"include":"#block-node"}]},"property":{"begin":"(?=[!\\\\&])","end":"(?!\\\\G)","name":"meta.property.yaml","patterns":[{"captures":{"1":{"name":"keyword.control.property.anchor.yaml"},"2":{"name":"punctuation.definition.anchor.yaml"},"3":{"name":"entity.name.type.anchor.yaml"},"4":{"name":"invalid.illegal.character.anchor.yaml"}},"match":"\\\\G((&))([^],/\\\\[{}\\\\s]+)(\\\\S+)?"},{"match":"\\\\G!(?:<(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])+>|(?:[-0-9A-Za-z]*!)?(?:%\\\\h{2}|[#$\\\\&-+\\\\--;=?-Z_a-z~])+|)(?=[\\\\t ]|$)","name":"storage.type.tag-handle.yaml"},{"match":"\\\\S+","name":"invalid.illegal.tag-handle.yaml"}]},"prototype":{"patterns":[{"include":"#comment"},{"include":"#property"}]}},"scopeName":"source.yaml","aliases":["yml"]}`))];export{e as default};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" role="img" aria-label="azdiffs">
|
|
2
|
+
<title>azdiffs</title>
|
|
3
|
+
<rect width="32" height="32" rx="7" fill="#1b1d22" />
|
|
4
|
+
<path d="M9 11h9M9 16h14M9 21h7" stroke="#4f8cff" stroke-width="2.5" stroke-linecap="round" />
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<meta name="color-scheme" content="dark light" />
|
|
7
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
8
|
+
<title>azdiffs</title>
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-B297yCgq.js"></script>
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-BLXQ4ufn.js">
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CjZUV4-4.css">
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<div id="app"></div>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azdiffs",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Fast pull request review for Azure DevOps, served from your terminal",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/victor-teles/azdiffs.git",
|
|
9
|
+
"directory": "apps/cli"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/victor-teles/azdiffs#readme",
|
|
12
|
+
"bugs": "https://github.com/victor-teles/azdiffs/issues",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"azure-devops",
|
|
15
|
+
"pull-request",
|
|
16
|
+
"code-review",
|
|
17
|
+
"diff",
|
|
18
|
+
"cli"
|
|
19
|
+
],
|
|
20
|
+
"type": "module",
|
|
21
|
+
"bin": {
|
|
22
|
+
"azdiffs": "dist/cli.js"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"THIRD_PARTY_NOTICES.md"
|
|
27
|
+
],
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=20"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"dev": "bun --watch src/dev.ts",
|
|
33
|
+
"build": "bun scripts/build.ts",
|
|
34
|
+
"build:e2e": "bun scripts/build.ts --e2e",
|
|
35
|
+
"typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.test.json",
|
|
36
|
+
"lint": "biome check .",
|
|
37
|
+
"test": "bun test",
|
|
38
|
+
"pack:check": "bun scripts/pack-check.ts"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@azdiffs/azure-devops": "workspace:*"
|
|
42
|
+
}
|
|
43
|
+
}
|