@cubejs-backend/server-core 1.7.39 → 1.7.40
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/package.json +13 -13
- package/playground/vizard/assets/abap-CRCWOmpq.js +1 -0
- package/playground/vizard/assets/apex-DnsZk_dE.js +1 -0
- package/playground/vizard/assets/azcli-1IWB1ccx.js +1 -0
- package/playground/vizard/assets/bat-DPkNLes8.js +1 -0
- package/playground/vizard/assets/{bicep-DJPqIr_M.js → bicep-Corcdgou.js} +1 -6
- package/playground/vizard/assets/cameligo-CGrWLZr3.js +1 -0
- package/playground/vizard/assets/clients-CxGQtFsu.js +1 -0
- package/playground/vizard/assets/clojure-D9WOWImG.js +1 -0
- package/playground/vizard/assets/coffee-B7EJu28W.js +1 -0
- package/playground/vizard/assets/cpp-BaF-TIV3.js +1 -0
- package/playground/vizard/assets/csharp-BoL64M5l.js +1 -0
- package/playground/vizard/assets/csp-C46ZqvIl.js +1 -0
- package/playground/vizard/assets/{css-CkCHETKw.js → css-DQU6DXDx.js} +1 -6
- package/playground/vizard/assets/{css.worker-CJ81phlL.js → css.worker-C3oFsChe.js} +23 -28
- package/playground/vizard/assets/cssMode-DtHNIdrr.js +4 -0
- package/playground/vizard/assets/cypher-D84EuPTj.js +1 -0
- package/playground/vizard/assets/dart-D8lhlL1r.js +1 -0
- package/playground/vizard/assets/dockerfile-DLk6rpji.js +1 -0
- package/playground/vizard/assets/ecl-BO6FnfXk.js +1 -0
- package/playground/vizard/assets/editor.worker-CHAQ398o.js +11 -0
- package/playground/vizard/assets/elixir-BRjLKONM.js +1 -0
- package/playground/vizard/assets/flow9-Cac8vKd7.js +1 -0
- package/playground/vizard/assets/{freemarker2-BjRjUUgK.js → freemarker2-D3hRPg66.js} +3 -8
- package/playground/vizard/assets/fsharp-fd1GTHhf.js +1 -0
- package/playground/vizard/assets/go-O9LJTZXk.js +1 -0
- package/playground/vizard/assets/graphql-LQdxqEYJ.js +1 -0
- package/playground/vizard/assets/handlebars-CmzyTLHM.js +1 -0
- package/playground/vizard/assets/hcl-DxDQ3s82.js +1 -0
- package/playground/vizard/assets/html-BQlDvTLO.js +1 -0
- package/playground/vizard/assets/htmlMode-B5vyN_yh.js +4 -0
- package/playground/vizard/assets/icons-CwVYGRlZ.js +57 -0
- package/playground/vizard/assets/{index-B0u8YO_h.css → index-9LlxgSLj.css} +1 -1
- package/playground/vizard/assets/index-DONzDWNC.js +7 -0
- package/playground/vizard/assets/ini-BvajGCUy.js +1 -0
- package/playground/vizard/assets/java-SYsfObOQ.js +1 -0
- package/playground/vizard/assets/javascript-Cqq1UmLD.js +1 -0
- package/playground/vizard/assets/json.worker-CH1C3E3z.js +37 -0
- package/playground/vizard/assets/jsonMode-CZ-xTnh0.js +6 -0
- package/playground/vizard/assets/julia-DQXNmw_w.js +1 -0
- package/playground/vizard/assets/kotlin-qQ0MG-9I.js +1 -0
- package/playground/vizard/assets/less-GGFNNJHn.js +2 -0
- package/playground/vizard/assets/lexon-Canl7DCW.js +1 -0
- package/playground/vizard/assets/liquid-BwaniY5x.js +1 -0
- package/playground/vizard/assets/lua-D28Ae8-K.js +1 -0
- package/playground/vizard/assets/m3-DPitgjJI.js +1 -0
- package/playground/vizard/assets/markdown-B811l8j2.js +1 -0
- package/playground/vizard/assets/mdx-FYEkmf7B.js +1 -0
- package/playground/vizard/assets/mips-CdjsipkG.js +1 -0
- package/playground/vizard/assets/{monaco-QpZRkR_O.js → monaco-CYdCgY0W.js} +151 -181
- package/playground/vizard/assets/msdax-CYqgjx_P.js +1 -0
- package/playground/vizard/assets/mysql-BHd6q0vd.js +1 -0
- package/playground/vizard/assets/objective-c-B1aVtJYH.js +1 -0
- package/playground/vizard/assets/other-DNLijWhD.js +2 -0
- package/playground/vizard/assets/pascal-BhNW15KB.js +1 -0
- package/playground/vizard/assets/pascaligo-5jv8CcQD.js +1 -0
- package/playground/vizard/assets/perl-DlYyT36c.js +1 -0
- package/playground/vizard/assets/pgsql-Dy0bjov7.js +1 -0
- package/playground/vizard/assets/php-120yhfDK.js +1 -0
- package/playground/vizard/assets/pla-CjnFlu4u.js +1 -0
- package/playground/vizard/assets/postiats-CQpG440k.js +1 -0
- package/playground/vizard/assets/powerquery-DdJtto1Z.js +1 -0
- package/playground/vizard/assets/powershell-Bu_VLpJB.js +1 -0
- package/playground/vizard/assets/{protobuf-Dzs34GPr.js → protobuf-IBS6jZEB.js} +1 -6
- package/playground/vizard/assets/pug-kFxLfcjb.js +1 -0
- package/playground/vizard/assets/python-CjR2h7KU.js +1 -0
- package/playground/vizard/assets/qsharp-gaqVKiJ_.js +1 -0
- package/playground/vizard/assets/r-BIFz-_sK.js +1 -0
- package/playground/vizard/assets/razor-D4Y0dbDk.js +1 -0
- package/playground/vizard/assets/react-l0sNRNKZ.js +1 -0
- package/playground/vizard/assets/redis-CHOsPHWR.js +1 -0
- package/playground/vizard/assets/redshift-CBifECDb.js +1 -0
- package/playground/vizard/assets/restructuredtext-CghPJEOS.js +1 -0
- package/playground/vizard/assets/ruby-CYWGW-b1.js +1 -0
- package/playground/vizard/assets/rust-DMDD0SHb.js +1 -0
- package/playground/vizard/assets/sb-BYAiYHFx.js +1 -0
- package/playground/vizard/assets/scala-Bqvq8jcR.js +1 -0
- package/playground/vizard/assets/scheme-Dhb-2j9p.js +1 -0
- package/playground/vizard/assets/{scss-Rf_ppwBg.js → scss-CTwUZ5N7.js} +1 -6
- package/playground/vizard/assets/shell-CsDZo4DB.js +1 -0
- package/playground/vizard/assets/solidity-CME5AdoB.js +1 -0
- package/playground/vizard/assets/sophia-RYC1BQQz.js +1 -0
- package/playground/vizard/assets/sparql-KEyrF7De.js +1 -0
- package/playground/vizard/assets/sql-BdTr02Mf.js +1 -0
- package/playground/vizard/assets/st-C7iG7M4S.js +1 -0
- package/playground/vizard/assets/swift-D7IUmUK8.js +1 -0
- package/playground/vizard/assets/systemverilog-DgMryOEJ.js +1 -0
- package/playground/vizard/assets/tcl-PloMZuKG.js +1 -0
- package/playground/vizard/assets/{ts.worker-VACfgpbU.js → ts.worker-CqkOEKjO.js} +75 -93
- package/playground/vizard/assets/{tsMode-DeCT_7_p.js → tsMode-Cvjisfey.js} +3 -8
- package/playground/vizard/assets/twig-BfRIq3la.js +1 -0
- package/playground/vizard/assets/typescript-DwgdF-Pj.js +1 -0
- package/playground/vizard/assets/uikit-Bx93IdUi.js +446 -0
- package/playground/vizard/assets/vb-BwAE3J76.js +1 -0
- package/playground/vizard/assets/{wgsl-DlxrJ_uh.js → wgsl-B_1kOXbF.js} +1 -6
- package/playground/vizard/assets/xml-xRWrYvkC.js +1 -0
- package/playground/vizard/assets/yaml-W6T5Qjhq.js +1 -0
- package/playground/vizard/download/react-typescript-antd-table.zip +0 -0
- package/playground/vizard/download/react-typescript-chartjs-area+bar+doughnut+line+pie.zip +0 -0
- package/playground/vizard/index.html +7 -8
- package/playground/vizard/preview/react-typescript-antd-table/assets/index-ChyDO9dl.js +313 -0
- package/playground/vizard/preview/react-typescript-antd-table/index.html +2 -2
- package/playground/vizard/preview/react-typescript-chartjs-area+bar+doughnut+line+pie/assets/index-D9jKufPU.js +12 -0
- package/playground/vizard/preview/react-typescript-chartjs-area+bar+doughnut+line+pie/index.html +2 -2
- package/playground/vizard/assets/abap-Bs-KDgo-.js +0 -6
- package/playground/vizard/assets/apex-BB8ijgrA.js +0 -6
- package/playground/vizard/assets/azcli-CM0y7Ame.js +0 -6
- package/playground/vizard/assets/bat-Bfxf8Mzl.js +0 -6
- package/playground/vizard/assets/cameligo-PnszTm2c.js +0 -6
- package/playground/vizard/assets/clients-CzhsrDwG.js +0 -1
- package/playground/vizard/assets/clojure-B3cFVYI-.js +0 -6
- package/playground/vizard/assets/coffee-D8tSzcLH.js +0 -6
- package/playground/vizard/assets/cpp-CP-cATHl.js +0 -6
- package/playground/vizard/assets/csharp-Dfj4WFqy.js +0 -6
- package/playground/vizard/assets/csp-D9HxVpWn.js +0 -6
- package/playground/vizard/assets/cssMode-EIMeoZ0D.js +0 -9
- package/playground/vizard/assets/cypher-B50w5pq9.js +0 -6
- package/playground/vizard/assets/dart-DvROnYA_.js +0 -6
- package/playground/vizard/assets/dockerfile-C4f37Dvd.js +0 -6
- package/playground/vizard/assets/ecl-DW46Dzft.js +0 -6
- package/playground/vizard/assets/editor.worker-DnhKYsI_.js +0 -11
- package/playground/vizard/assets/elixir-BIa5JtGe.js +0 -6
- package/playground/vizard/assets/flow9-ByI4Scwv.js +0 -6
- package/playground/vizard/assets/fsharp-Cgf6u04w.js +0 -6
- package/playground/vizard/assets/go-CJfxPkej.js +0 -6
- package/playground/vizard/assets/graphql-CGlhcY2-.js +0 -6
- package/playground/vizard/assets/handlebars-Cp-Otq7z.js +0 -6
- package/playground/vizard/assets/hcl-CTI7WNlW.js +0 -6
- package/playground/vizard/assets/html-9X_QuFNV.js +0 -6
- package/playground/vizard/assets/htmlMode-BVz_CiVZ.js +0 -9
- package/playground/vizard/assets/icons-D8fX1_2-.js +0 -61
- package/playground/vizard/assets/index-Cn46wccg.js +0 -4723
- package/playground/vizard/assets/ini-qJXHXiTY.js +0 -6
- package/playground/vizard/assets/java-Dnrl9822.js +0 -6
- package/playground/vizard/assets/javascript-BrlNfx48.js +0 -6
- package/playground/vizard/assets/json.worker-DY5adJme.js +0 -42
- package/playground/vizard/assets/jsonMode-CAwYRRV9.js +0 -11
- package/playground/vizard/assets/julia-pqMLycLG.js +0 -6
- package/playground/vizard/assets/kotlin-DLX697jv.js +0 -6
- package/playground/vizard/assets/less-2ExdFhZM.js +0 -7
- package/playground/vizard/assets/lexon-ABKfEwhw.js +0 -6
- package/playground/vizard/assets/liquid-B5u8u5ff.js +0 -6
- package/playground/vizard/assets/lua-CI0blgFs.js +0 -6
- package/playground/vizard/assets/m3-yVPEHiu4.js +0 -6
- package/playground/vizard/assets/markdown-CjOKAnMy.js +0 -6
- package/playground/vizard/assets/mdx-BGfI80Xw.js +0 -6
- package/playground/vizard/assets/mips-B7KWClFm.js +0 -6
- package/playground/vizard/assets/msdax-N_40gjXO.js +0 -6
- package/playground/vizard/assets/mysql-CzgTwwi2.js +0 -6
- package/playground/vizard/assets/objective-c-CwAIQX-6.js +0 -6
- package/playground/vizard/assets/other-HgnFgCOO.js +0 -2
- package/playground/vizard/assets/pascal-3SrKWnFX.js +0 -6
- package/playground/vizard/assets/pascaligo-Cv9Y0fbC.js +0 -6
- package/playground/vizard/assets/perl-DHxnJL0_.js +0 -6
- package/playground/vizard/assets/pgsql-DGJFw0qd.js +0 -6
- package/playground/vizard/assets/php-BA3Rqjpx.js +0 -6
- package/playground/vizard/assets/pla-DKf5_u7N.js +0 -6
- package/playground/vizard/assets/postiats-Bup1kUyj.js +0 -6
- package/playground/vizard/assets/powerquery-BfbPeLER.js +0 -6
- package/playground/vizard/assets/powershell-DAsS7BG8.js +0 -6
- package/playground/vizard/assets/pug-CVuUMJ1K.js +0 -6
- package/playground/vizard/assets/python-eaj7SXr6.js +0 -6
- package/playground/vizard/assets/qsharp-BgY1GbL_.js +0 -6
- package/playground/vizard/assets/r-C2Iz-cGs.js +0 -6
- package/playground/vizard/assets/razor-mSmpvSb7.js +0 -6
- package/playground/vizard/assets/react-CJahmRYQ.js +0 -32
- package/playground/vizard/assets/redis-F7UxdB6U.js +0 -6
- package/playground/vizard/assets/redshift-CDF44XVS.js +0 -6
- package/playground/vizard/assets/restructuredtext-C_dzeD_4.js +0 -6
- package/playground/vizard/assets/ruby-BdxlVRg3.js +0 -6
- package/playground/vizard/assets/rust-gU8692nP.js +0 -6
- package/playground/vizard/assets/sb-CsAkPjmq.js +0 -6
- package/playground/vizard/assets/scala-D_TH4Qyk.js +0 -6
- package/playground/vizard/assets/scheme-CTXRt_ZJ.js +0 -6
- package/playground/vizard/assets/shell-osqRiq1b.js +0 -6
- package/playground/vizard/assets/solidity-BTHmi1CB.js +0 -6
- package/playground/vizard/assets/sophia-BRe4RArb.js +0 -6
- package/playground/vizard/assets/sparql-CaSv-uNl.js +0 -6
- package/playground/vizard/assets/sql-CHiRcria.js +0 -6
- package/playground/vizard/assets/st-CCGZ7KTi.js +0 -6
- package/playground/vizard/assets/swift-DeyDsJzf.js +0 -8
- package/playground/vizard/assets/systemverilog-RSGMMa-l.js +0 -6
- package/playground/vizard/assets/tcl-B28K5YOH.js +0 -6
- package/playground/vizard/assets/twig-ChoE7Tfw.js +0 -6
- package/playground/vizard/assets/typescript-DHPJO5zk.js +0 -6
- package/playground/vizard/assets/uikit-B7SaluUF.js +0 -1352
- package/playground/vizard/assets/vb-BCnlgLOU.js +0 -6
- package/playground/vizard/assets/xml-BzVPTsY-.js +0 -6
- package/playground/vizard/assets/yaml-BQjIkRBM.js +0 -6
- package/playground/vizard/preview/react-typescript-antd-table/assets/index-BUeSoip0.js +0 -355
- package/playground/vizard/preview/react-typescript-chartjs-area+bar+doughnut+line+pie/assets/index-CqgSyhTK.js +0 -57
- /package/playground/vizard/assets/{monaco-ZJDocGaF.css → monaco-DubZzIGg.css} +0 -0
- /package/playground/vizard/preview/react-typescript-antd-table/assets/{index-D47x4Gho.css → index-DMzrXVau.css} +0 -0
- /package/playground/vizard/preview/react-typescript-chartjs-area+bar+doughnut+line+pie/assets/{index-D47x4Gho.css → index-DMzrXVau.css} +0 -0
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import{t as
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/var T=Object.defineProperty,M=Object.getOwnPropertyDescriptor,R=Object.getOwnPropertyNames,K=Object.prototype.hasOwnProperty,E=(e,t,s)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,A=(e,t,s,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of R(t))!K.call(e,i)&&i!==s&&T(e,i,{get:()=>t[i],enumerable:!(o=M(t,i))||o.enumerable});return e},H=(e,t,s)=>(A(e,t,"default"),s&&A(s,t,"default")),f=(e,t,s)=>(E(e,typeof t!="symbol"?t+"":t,s),s),a={};H(a,N);var V=class{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}_configChangeListener;_updateExtraLibsToken;_extraLibsChangeListener;_worker;_client;dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=a.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(a.editor.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},n={};n["lib.d.ts"]=!0;n["lib.decorators.d.ts"]=!0;n["lib.decorators.legacy.d.ts"]=!0;n["lib.dom.d.ts"]=!0;n["lib.dom.iterable.d.ts"]=!0;n["lib.es2015.collection.d.ts"]=!0;n["lib.es2015.core.d.ts"]=!0;n["lib.es2015.d.ts"]=!0;n["lib.es2015.generator.d.ts"]=!0;n["lib.es2015.iterable.d.ts"]=!0;n["lib.es2015.promise.d.ts"]=!0;n["lib.es2015.proxy.d.ts"]=!0;n["lib.es2015.reflect.d.ts"]=!0;n["lib.es2015.symbol.d.ts"]=!0;n["lib.es2015.symbol.wellknown.d.ts"]=!0;n["lib.es2016.array.include.d.ts"]=!0;n["lib.es2016.d.ts"]=!0;n["lib.es2016.full.d.ts"]=!0;n["lib.es2017.d.ts"]=!0;n["lib.es2017.full.d.ts"]=!0;n["lib.es2017.intl.d.ts"]=!0;n["lib.es2017.object.d.ts"]=!0;n["lib.es2017.sharedmemory.d.ts"]=!0;n["lib.es2017.string.d.ts"]=!0;n["lib.es2017.typedarrays.d.ts"]=!0;n["lib.es2018.asyncgenerator.d.ts"]=!0;n["lib.es2018.asynciterable.d.ts"]=!0;n["lib.es2018.d.ts"]=!0;n["lib.es2018.full.d.ts"]=!0;n["lib.es2018.intl.d.ts"]=!0;n["lib.es2018.promise.d.ts"]=!0;n["lib.es2018.regexp.d.ts"]=!0;n["lib.es2019.array.d.ts"]=!0;n["lib.es2019.d.ts"]=!0;n["lib.es2019.full.d.ts"]=!0;n["lib.es2019.intl.d.ts"]=!0;n["lib.es2019.object.d.ts"]=!0;n["lib.es2019.string.d.ts"]=!0;n["lib.es2019.symbol.d.ts"]=!0;n["lib.es2020.bigint.d.ts"]=!0;n["lib.es2020.d.ts"]=!0;n["lib.es2020.date.d.ts"]=!0;n["lib.es2020.full.d.ts"]=!0;n["lib.es2020.intl.d.ts"]=!0;n["lib.es2020.number.d.ts"]=!0;n["lib.es2020.promise.d.ts"]=!0;n["lib.es2020.sharedmemory.d.ts"]=!0;n["lib.es2020.string.d.ts"]=!0;n["lib.es2020.symbol.wellknown.d.ts"]=!0;n["lib.es2021.d.ts"]=!0;n["lib.es2021.full.d.ts"]=!0;n["lib.es2021.intl.d.ts"]=!0;n["lib.es2021.promise.d.ts"]=!0;n["lib.es2021.string.d.ts"]=!0;n["lib.es2021.weakref.d.ts"]=!0;n["lib.es2022.array.d.ts"]=!0;n["lib.es2022.d.ts"]=!0;n["lib.es2022.error.d.ts"]=!0;n["lib.es2022.full.d.ts"]=!0;n["lib.es2022.intl.d.ts"]=!0;n["lib.es2022.object.d.ts"]=!0;n["lib.es2022.regexp.d.ts"]=!0;n["lib.es2022.sharedmemory.d.ts"]=!0;n["lib.es2022.string.d.ts"]=!0;n["lib.es2023.array.d.ts"]=!0;n["lib.es2023.d.ts"]=!0;n["lib.es2023.full.d.ts"]=!0;n["lib.es5.d.ts"]=!0;n["lib.es6.d.ts"]=!0;n["lib.esnext.d.ts"]=!0;n["lib.esnext.full.d.ts"]=!0;n["lib.esnext.intl.d.ts"]=!0;n["lib.scripthost.d.ts"]=!0;n["lib.webworker.d.ts"]=!0;n["lib.webworker.importscripts.d.ts"]=!0;n["lib.webworker.iterable.d.ts"]=!0;function C(e,t,s=0){if(typeof e=="string")return e;if(e===void 0)return"";let o="";if(s){o+=t;for(let i=0;i<s;i++)o+=" "}if(o+=e.messageText,s++,e.next)for(const i of e.next)o+=C(i,t,s);return o}function w(e){return e?e.map(t=>t.text).join(""):""}var _=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let s=e.getPositionAt(t.start),o=e.getPositionAt(t.start+t.length),{lineNumber:i,column:u}=s,{lineNumber:c,column:r}=o;return{startLineNumber:i,startColumn:u,endLineNumber:c,endColumn:r}}},W=class{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}_libFiles;_hasFetchedLibFiles;_fetchLibFilesPromise;isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!n[e.path.slice(1)]:!1}getOrCreateModel(e){const t=a.Uri.parse(e),s=a.editor.getModel(t);if(s)return s;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return a.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const o=I.getExtraLibs()[e];return o?a.editor.createModel(o.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}},j=class extends _{constructor(e,t,s,o){super(o),this._libFiles=e,this._defaults=t,this._selector=s;const i=r=>{if(r.getLanguageId()!==s)return;const g=()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h?r.isAttachedToEditor()&&this._doValidate(r):this._doValidate(r)};let d;const p=r.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(g,500)}),b=r.onDidChangeAttached(()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h&&(r.isAttachedToEditor()?g():a.editor.setModelMarkers(r,this._selector,[]))});this._listener[r.uri.toString()]={dispose(){p.dispose(),b.dispose(),clearTimeout(d)}},g()},u=r=>{a.editor.setModelMarkers(r,this._selector,[]);const g=r.uri.toString();this._listener[g]&&(this._listener[g].dispose(),delete this._listener[g])};this._disposables.push(a.editor.onDidCreateModel(r=>i(r))),this._disposables.push(a.editor.onWillDisposeModel(u)),this._disposables.push(a.editor.onDidChangeModelLanguage(r=>{u(r.model),i(r.model)})),this._disposables.push({dispose(){for(const r of a.editor.getModels())u(r)}});const c=()=>{for(const r of a.editor.getModels())u(r),i(r)};this._disposables.push(this._defaults.onDidChange(c)),this._disposables.push(this._defaults.onDidExtraLibsChange(c)),a.editor.getModels().forEach(r=>i(r))}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const s=[],{noSyntaxValidation:o,noSemanticValidation:i,noSuggestionDiagnostics:u}=this._defaults.getDiagnosticsOptions();o||s.push(t.getSyntacticDiagnostics(e.uri.toString())),i||s.push(t.getSemanticDiagnostics(e.uri.toString())),u||s.push(t.getSuggestionDiagnostics(e.uri.toString()));const c=await Promise.all(s);if(!c||e.isDisposed())return;const r=c.reduce((d,p)=>p.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),g=r.map(d=>d.relatedInformation||[]).reduce((d,p)=>p.concat(d),[]).map(d=>d.file?a.Uri.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(g),!e.isDisposed()&&a.editor.setModelMarkers(e,this._selector,r.map(d=>this._convertDiagnostics(e,d)))}_convertDiagnostics(e,t){const s=t.start||0,o=t.length||1,{lineNumber:i,column:u}=e.getPositionAt(s),{lineNumber:c,column:r}=e.getPositionAt(s+o),g=[];return t.reportsUnnecessary&&g.push(a.MarkerTag.Unnecessary),t.reportsDeprecated&&g.push(a.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:i,startColumn:u,endLineNumber:c,endColumn:r,message:C(t.messageText,`
|
|
1
|
+
import{t as O,m as I}from"./monaco-CYdCgY0W.js";import"./uikit-Bx93IdUi.js";import"./other-DNLijWhD.js";import"./icons-CwVYGRlZ.js";var A=Object.defineProperty,N=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,R=Object.prototype.hasOwnProperty,K=(e,t,s)=>t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,E=(e,t,s,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of M(t))!R.call(e,i)&&i!==s&&A(e,i,{get:()=>t[i],enumerable:!(o=N(t,i))||o.enumerable});return e},H=(e,t,s)=>(E(e,t,"default"),s),f=(e,t,s)=>(K(e,typeof t!="symbol"?t+"":t,s),s),a={};H(a,I);var V=class{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}_configChangeListener;_updateExtraLibsToken;_extraLibsChangeListener;_worker;_client;dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=a.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(a.editor.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},n={};n["lib.d.ts"]=!0;n["lib.decorators.d.ts"]=!0;n["lib.decorators.legacy.d.ts"]=!0;n["lib.dom.d.ts"]=!0;n["lib.dom.iterable.d.ts"]=!0;n["lib.es2015.collection.d.ts"]=!0;n["lib.es2015.core.d.ts"]=!0;n["lib.es2015.d.ts"]=!0;n["lib.es2015.generator.d.ts"]=!0;n["lib.es2015.iterable.d.ts"]=!0;n["lib.es2015.promise.d.ts"]=!0;n["lib.es2015.proxy.d.ts"]=!0;n["lib.es2015.reflect.d.ts"]=!0;n["lib.es2015.symbol.d.ts"]=!0;n["lib.es2015.symbol.wellknown.d.ts"]=!0;n["lib.es2016.array.include.d.ts"]=!0;n["lib.es2016.d.ts"]=!0;n["lib.es2016.full.d.ts"]=!0;n["lib.es2017.d.ts"]=!0;n["lib.es2017.full.d.ts"]=!0;n["lib.es2017.intl.d.ts"]=!0;n["lib.es2017.object.d.ts"]=!0;n["lib.es2017.sharedmemory.d.ts"]=!0;n["lib.es2017.string.d.ts"]=!0;n["lib.es2017.typedarrays.d.ts"]=!0;n["lib.es2018.asyncgenerator.d.ts"]=!0;n["lib.es2018.asynciterable.d.ts"]=!0;n["lib.es2018.d.ts"]=!0;n["lib.es2018.full.d.ts"]=!0;n["lib.es2018.intl.d.ts"]=!0;n["lib.es2018.promise.d.ts"]=!0;n["lib.es2018.regexp.d.ts"]=!0;n["lib.es2019.array.d.ts"]=!0;n["lib.es2019.d.ts"]=!0;n["lib.es2019.full.d.ts"]=!0;n["lib.es2019.intl.d.ts"]=!0;n["lib.es2019.object.d.ts"]=!0;n["lib.es2019.string.d.ts"]=!0;n["lib.es2019.symbol.d.ts"]=!0;n["lib.es2020.bigint.d.ts"]=!0;n["lib.es2020.d.ts"]=!0;n["lib.es2020.date.d.ts"]=!0;n["lib.es2020.full.d.ts"]=!0;n["lib.es2020.intl.d.ts"]=!0;n["lib.es2020.number.d.ts"]=!0;n["lib.es2020.promise.d.ts"]=!0;n["lib.es2020.sharedmemory.d.ts"]=!0;n["lib.es2020.string.d.ts"]=!0;n["lib.es2020.symbol.wellknown.d.ts"]=!0;n["lib.es2021.d.ts"]=!0;n["lib.es2021.full.d.ts"]=!0;n["lib.es2021.intl.d.ts"]=!0;n["lib.es2021.promise.d.ts"]=!0;n["lib.es2021.string.d.ts"]=!0;n["lib.es2021.weakref.d.ts"]=!0;n["lib.es2022.array.d.ts"]=!0;n["lib.es2022.d.ts"]=!0;n["lib.es2022.error.d.ts"]=!0;n["lib.es2022.full.d.ts"]=!0;n["lib.es2022.intl.d.ts"]=!0;n["lib.es2022.object.d.ts"]=!0;n["lib.es2022.regexp.d.ts"]=!0;n["lib.es2022.sharedmemory.d.ts"]=!0;n["lib.es2022.string.d.ts"]=!0;n["lib.es2023.array.d.ts"]=!0;n["lib.es2023.d.ts"]=!0;n["lib.es2023.full.d.ts"]=!0;n["lib.es5.d.ts"]=!0;n["lib.es6.d.ts"]=!0;n["lib.esnext.d.ts"]=!0;n["lib.esnext.full.d.ts"]=!0;n["lib.esnext.intl.d.ts"]=!0;n["lib.scripthost.d.ts"]=!0;n["lib.webworker.d.ts"]=!0;n["lib.webworker.importscripts.d.ts"]=!0;n["lib.webworker.iterable.d.ts"]=!0;function C(e,t,s=0){if(typeof e=="string")return e;if(e===void 0)return"";let o="";if(s){o+=t;for(let i=0;i<s;i++)o+=" "}if(o+=e.messageText,s++,e.next)for(const i of e.next)o+=C(i,t,s);return o}function w(e){return e?e.map(t=>t.text).join(""):""}var _=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let s=e.getPositionAt(t.start),o=e.getPositionAt(t.start+t.length),{lineNumber:i,column:u}=s,{lineNumber:c,column:r}=o;return{startLineNumber:i,startColumn:u,endLineNumber:c,endColumn:r}}},W=class{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}_libFiles;_hasFetchedLibFiles;_fetchLibFilesPromise;isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!n[e.path.slice(1)]:!1}getOrCreateModel(e){const t=a.Uri.parse(e),s=a.editor.getModel(t);if(s)return s;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return a.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const o=O.getExtraLibs()[e];return o?a.editor.createModel(o.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}},j=class extends _{constructor(e,t,s,o){super(o),this._libFiles=e,this._defaults=t,this._selector=s;const i=r=>{if(r.getLanguageId()!==s)return;const g=()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h?r.isAttachedToEditor()&&this._doValidate(r):this._doValidate(r)};let d;const p=r.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(g,500)}),b=r.onDidChangeAttached(()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h&&(r.isAttachedToEditor()?g():a.editor.setModelMarkers(r,this._selector,[]))});this._listener[r.uri.toString()]={dispose(){p.dispose(),b.dispose(),clearTimeout(d)}},g()},u=r=>{a.editor.setModelMarkers(r,this._selector,[]);const g=r.uri.toString();this._listener[g]&&(this._listener[g].dispose(),delete this._listener[g])};this._disposables.push(a.editor.onDidCreateModel(r=>i(r))),this._disposables.push(a.editor.onWillDisposeModel(u)),this._disposables.push(a.editor.onDidChangeModelLanguage(r=>{u(r.model),i(r.model)})),this._disposables.push({dispose(){for(const r of a.editor.getModels())u(r)}});const c=()=>{for(const r of a.editor.getModels())u(r),i(r)};this._disposables.push(this._defaults.onDidChange(c)),this._disposables.push(this._defaults.onDidExtraLibsChange(c)),a.editor.getModels().forEach(r=>i(r))}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const s=[],{noSyntaxValidation:o,noSemanticValidation:i,noSuggestionDiagnostics:u}=this._defaults.getDiagnosticsOptions();o||s.push(t.getSyntacticDiagnostics(e.uri.toString())),i||s.push(t.getSemanticDiagnostics(e.uri.toString())),u||s.push(t.getSuggestionDiagnostics(e.uri.toString()));const c=await Promise.all(s);if(!c||e.isDisposed())return;const r=c.reduce((d,p)=>p.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),g=r.map(d=>d.relatedInformation||[]).reduce((d,p)=>p.concat(d),[]).map(d=>d.file?a.Uri.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(g),!e.isDisposed()&&a.editor.setModelMarkers(e,this._selector,r.map(d=>this._convertDiagnostics(e,d)))}_convertDiagnostics(e,t){const s=t.start||0,o=t.length||1,{lineNumber:i,column:u}=e.getPositionAt(s),{lineNumber:c,column:r}=e.getPositionAt(s+o),g=[];return t.reportsUnnecessary&&g.push(a.MarkerTag.Unnecessary),t.reportsDeprecated&&g.push(a.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:i,startColumn:u,endLineNumber:c,endColumn:r,message:C(t.messageText,`
|
|
7
2
|
`),code:t.code.toString(),tags:g,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];const s=[];return t.forEach(o=>{let i=e;if(o.file&&(i=this._libFiles.getOrCreateModel(o.file.fileName)),!i)return;const u=o.start||0,c=o.length||1,{lineNumber:r,column:g}=i.getPositionAt(u),{lineNumber:d,column:p}=i.getPositionAt(u+c);s.push({resource:i.uri,startLineNumber:r,startColumn:g,endLineNumber:d,endColumn:p,message:C(o.messageText,`
|
|
8
3
|
`)})}),s}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return a.MarkerSeverity.Error;case 3:return a.MarkerSeverity.Info;case 0:return a.MarkerSeverity.Warning;case 2:return a.MarkerSeverity.Hint}return a.MarkerSeverity.Info}},x=class extends _{get triggerCharacters(){return["."]}async provideCompletionItems(e,t,s,o){const i=e.getWordUntilPosition(t),u=new a.Range(t.lineNumber,i.startColumn,t.lineNumber,i.endColumn),c=e.uri,r=e.getOffsetAt(t),g=await this._worker(c);if(e.isDisposed())return;const d=await g.getCompletionsAtPosition(c.toString(),r);return!d||e.isDisposed()?void 0:{suggestions:d.entries.map(b=>{let h=u;if(b.replacementSpan){const S=e.getPositionAt(b.replacementSpan.start),v=e.getPositionAt(b.replacementSpan.start+b.replacementSpan.length);h=new a.Range(S.lineNumber,S.column,v.lineNumber,v.column)}const y=[];return b.kindModifiers!==void 0&&b.kindModifiers.indexOf("deprecated")!==-1&&y.push(a.languages.CompletionItemTag.Deprecated),{uri:c,position:t,offset:r,range:h,label:b.name,insertText:b.name,sortText:b.sortText,kind:x.convertKind(b.kind),tags:y}})}}async resolveCompletionItem(e,t){const s=e,o=s.uri,i=s.position,u=s.offset,r=await(await this._worker(o)).getCompletionEntryDetails(o.toString(),u,s.label);return r?{uri:o,position:i,label:r.name,kind:x.convertKind(r.kind),detail:w(r.displayParts),documentation:{value:x.createDocumentationString(r)}}:s}static convertKind(e){switch(e){case l.primitiveType:case l.keyword:return a.languages.CompletionItemKind.Keyword;case l.variable:case l.localVariable:return a.languages.CompletionItemKind.Variable;case l.memberVariable:case l.memberGetAccessor:case l.memberSetAccessor:return a.languages.CompletionItemKind.Field;case l.function:case l.memberFunction:case l.constructSignature:case l.callSignature:case l.indexSignature:return a.languages.CompletionItemKind.Function;case l.enum:return a.languages.CompletionItemKind.Enum;case l.module:return a.languages.CompletionItemKind.Module;case l.class:return a.languages.CompletionItemKind.Class;case l.interface:return a.languages.CompletionItemKind.Interface;case l.warning:return a.languages.CompletionItemKind.File}return a.languages.CompletionItemKind.Property}static createDocumentationString(e){let t=w(e.documentation);if(e.tags)for(const s of e.tags)t+=`
|
|
9
4
|
|
|
10
|
-
${
|
|
5
|
+
${T(s)}`;return t}};function T(e){let t=`*@${e.name}*`;if(e.name==="param"&&e.text){const[s,...o]=e.text;t+=`\`${s.text}\``,o.length>0&&(t+=` — ${o.map(i=>i.text).join(" ")}`)}else Array.isArray(e.text)?t+=` — ${e.text.map(s=>s.text).join(" ")}`:e.text&&(t+=` — ${e.text}`);return t}var L=class extends _{signatureHelpTriggerCharacters=["(",","];static _toSignatureHelpTriggerReason(e){switch(e.triggerKind){case a.languages.SignatureHelpTriggerKind.TriggerCharacter:return e.triggerCharacter?e.isRetrigger?{kind:"retrigger",triggerCharacter:e.triggerCharacter}:{kind:"characterTyped",triggerCharacter:e.triggerCharacter}:{kind:"invoked"};case a.languages.SignatureHelpTriggerKind.ContentChange:return e.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case a.languages.SignatureHelpTriggerKind.Invoke:default:return{kind:"invoked"}}}async provideSignatureHelp(e,t,s,o){const i=e.uri,u=e.getOffsetAt(t),c=await this._worker(i);if(e.isDisposed())return;const r=await c.getSignatureHelpItems(i.toString(),u,{triggerReason:L._toSignatureHelpTriggerReason(o)});if(!r||e.isDisposed())return;const g={activeSignature:r.selectedItemIndex,activeParameter:r.argumentIndex,signatures:[]};return r.items.forEach(d=>{const p={label:"",parameters:[]};p.documentation={value:w(d.documentation)},p.label+=w(d.prefixDisplayParts),d.parameters.forEach((b,h,y)=>{const S=w(b.displayParts),v={label:S,documentation:{value:w(b.documentation)}};p.label+=S,p.parameters.push(v),h<y.length-1&&(p.label+=w(d.separatorDisplayParts))}),p.label+=w(d.suffixDisplayParts),g.signatures.push(p)}),{value:g,dispose(){}}}},B=class extends _{async provideHover(e,t,s){const o=e.uri,i=e.getOffsetAt(t),u=await this._worker(o);if(e.isDisposed())return;const c=await u.getQuickInfoAtPosition(o.toString(),i);if(!c||e.isDisposed())return;const r=w(c.documentation),g=c.tags?c.tags.map(p=>T(p)).join(`
|
|
11
6
|
|
|
12
7
|
`):"",d=w(c.displayParts);return{range:this._textSpanToRange(e,c.textSpan),contents:[{value:"```typescript\n"+d+"\n```\n"},{value:r+(g?`
|
|
13
8
|
|
|
14
9
|
`+g:"")}]}}},U=class extends _{async provideDocumentHighlights(e,t,s){const o=e.uri,i=e.getOffsetAt(t),u=await this._worker(o);if(e.isDisposed())return;const c=await u.getDocumentHighlights(o.toString(),i,[o.toString()]);if(!(!c||e.isDisposed()))return c.flatMap(r=>r.highlightSpans.map(g=>({range:this._textSpanToRange(e,g.textSpan),kind:g.kind==="writtenReference"?a.languages.DocumentHighlightKind.Write:a.languages.DocumentHighlightKind.Text})))}},$=class extends _{constructor(e,t){super(t),this._libFiles=e}async provideDefinition(e,t,s){const o=e.uri,i=e.getOffsetAt(t),u=await this._worker(o);if(e.isDisposed())return;const c=await u.getDefinitionAtPosition(o.toString(),i);if(!c||e.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(c.map(g=>a.Uri.parse(g.fileName))),e.isDisposed()))return;const r=[];for(let g of c){const d=this._libFiles.getOrCreateModel(g.fileName);d&&r.push({uri:d.uri,range:this._textSpanToRange(d,g.textSpan)})}return r}},z=class extends _{constructor(e,t){super(t),this._libFiles=e}async provideReferences(e,t,s,o){const i=e.uri,u=e.getOffsetAt(t),c=await this._worker(i);if(e.isDisposed())return;const r=await c.getReferencesAtPosition(i.toString(),u);if(!r||e.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(r.map(d=>a.Uri.parse(d.fileName))),e.isDisposed()))return;const g=[];for(let d of r){const p=this._libFiles.getOrCreateModel(d.fileName);p&&g.push({uri:p.uri,range:this._textSpanToRange(p,d.textSpan)})}return g}},G=class extends _{async provideDocumentSymbols(e,t){const s=e.uri,o=await this._worker(s);if(e.isDisposed())return;const i=await o.getNavigationTree(s.toString());if(!i||e.isDisposed())return;const u=(r,g)=>({name:r.text,detail:"",kind:m[r.kind]||a.languages.SymbolKind.Variable,range:this._textSpanToRange(e,r.spans[0]),selectionRange:this._textSpanToRange(e,r.spans[0]),tags:[],children:r.childItems?.map(p=>u(p,r.text)),containerName:g});return i.childItems?i.childItems.map(r=>u(r)):[]}},l=class{};f(l,"unknown","");f(l,"keyword","keyword");f(l,"script","script");f(l,"module","module");f(l,"class","class");f(l,"interface","interface");f(l,"type","type");f(l,"enum","enum");f(l,"variable","var");f(l,"localVariable","local var");f(l,"function","function");f(l,"localFunction","local function");f(l,"memberFunction","method");f(l,"memberGetAccessor","getter");f(l,"memberSetAccessor","setter");f(l,"memberVariable","property");f(l,"constructorImplementation","constructor");f(l,"callSignature","call");f(l,"indexSignature","index");f(l,"constructSignature","construct");f(l,"parameter","parameter");f(l,"typeParameter","type parameter");f(l,"primitiveType","primitive type");f(l,"label","label");f(l,"alias","alias");f(l,"const","const");f(l,"let","let");f(l,"warning","warning");var m=Object.create(null);m[l.module]=a.languages.SymbolKind.Module;m[l.class]=a.languages.SymbolKind.Class;m[l.enum]=a.languages.SymbolKind.Enum;m[l.interface]=a.languages.SymbolKind.Interface;m[l.memberFunction]=a.languages.SymbolKind.Method;m[l.memberVariable]=a.languages.SymbolKind.Property;m[l.memberGetAccessor]=a.languages.SymbolKind.Property;m[l.memberSetAccessor]=a.languages.SymbolKind.Property;m[l.variable]=a.languages.SymbolKind.Variable;m[l.const]=a.languages.SymbolKind.Variable;m[l.localVariable]=a.languages.SymbolKind.Variable;m[l.variable]=a.languages.SymbolKind.Variable;m[l.function]=a.languages.SymbolKind.Function;m[l.localFunction]=a.languages.SymbolKind.Function;var k=class extends _{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:`
|
|
15
10
|
`,InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}}},J=class extends k{canFormatMultipleRanges=!1;async provideDocumentRangeFormattingEdits(e,t,s,o){const i=e.uri,u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),r=await this._worker(i);if(e.isDisposed())return;const g=await r.getFormattingEditsForRange(i.toString(),u,c,k._convertOptions(s));if(!(!g||e.isDisposed()))return g.map(d=>this._convertTextChanges(e,d))}},Q=class extends k{get autoFormatTriggerCharacters(){return[";","}",`
|
|
16
|
-
`]}async provideOnTypeFormattingEdits(e,t,s,o,i){const u=e.uri,c=e.getOffsetAt(t),r=await this._worker(u);if(e.isDisposed())return;const g=await r.getFormattingEditsAfterKeystroke(u.toString(),c,s,k._convertOptions(o));if(!(!g||e.isDisposed()))return g.map(d=>this._convertTextChanges(e,d))}},q=class extends k{async provideCodeActions(e,t,s,o){const i=e.uri,u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),r=k._convertOptions(e.getOptions()),g=s.markers.filter(h=>h.code).map(h=>h.code).map(Number),d=await this._worker(i);if(e.isDisposed())return;const p=await d.getCodeFixesAtPosition(i.toString(),u,c,g,r);return!p||e.isDisposed()?{actions:[],dispose:()=>{}}:{actions:p.filter(h=>h.changes.filter(y=>y.isNewFile).length===0).map(h=>this._tsCodeFixActionToMonacoCodeAction(e,s,h)),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,s){const o=[];for(const u of s.changes)for(const c of u.textChanges)o.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,c.span),text:c.newText}});return{title:s.description,edit:{edits:o},diagnostics:t.markers,kind:"quickfix"}}},X=class extends _{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,s,o){const i=e.uri,u=i.toString(),c=e.getOffsetAt(t),r=await this._worker(i);if(e.isDisposed())return;const g=await r.getRenameInfo(u,c,{allowRenameOfImportPath:!1});if(g.canRename===!1)return{edits:[],rejectReason:g.localizedErrorMessage};if(g.fileToRename!==void 0)throw new Error("Renaming files is not supported.");const d=await r.findRenameLocations(u,c,!1,!1,!1);if(!d||e.isDisposed())return;const p=[];for(const b of d){const h=this._libFiles.getOrCreateModel(b.fileName);if(h)p.push({resource:h.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(h,b.textSpan),text:s}});else throw new Error(`Unknown file ${b.fileName}.`)}return{edits:p}}},Y=class extends _{async provideInlayHints(e,t,s){const o=e.uri,i=o.toString(),u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),r=await this._worker(o);return e.isDisposed()?null:{hints:(await r.provideInlayHints(i,u,c)).map(p=>({...p,label:p.text,position:e.getPositionAt(p.position),kind:this._convertHintKind(p.kind)})),dispose:()=>{}}}_convertHintKind(e){switch(e){case"Parameter":return a.languages.InlayHintKind.Parameter;case"Type":return a.languages.InlayHintKind.Type;default:return a.languages.InlayHintKind.Type}}},D,F;function
|
|
11
|
+
`]}async provideOnTypeFormattingEdits(e,t,s,o,i){const u=e.uri,c=e.getOffsetAt(t),r=await this._worker(u);if(e.isDisposed())return;const g=await r.getFormattingEditsAfterKeystroke(u.toString(),c,s,k._convertOptions(o));if(!(!g||e.isDisposed()))return g.map(d=>this._convertTextChanges(e,d))}},q=class extends k{async provideCodeActions(e,t,s,o){const i=e.uri,u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),r=k._convertOptions(e.getOptions()),g=s.markers.filter(h=>h.code).map(h=>h.code).map(Number),d=await this._worker(i);if(e.isDisposed())return;const p=await d.getCodeFixesAtPosition(i.toString(),u,c,g,r);return!p||e.isDisposed()?{actions:[],dispose:()=>{}}:{actions:p.filter(h=>h.changes.filter(y=>y.isNewFile).length===0).map(h=>this._tsCodeFixActionToMonacoCodeAction(e,s,h)),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,s){const o=[];for(const u of s.changes)for(const c of u.textChanges)o.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,c.span),text:c.newText}});return{title:s.description,edit:{edits:o},diagnostics:t.markers,kind:"quickfix"}}},X=class extends _{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,s,o){const i=e.uri,u=i.toString(),c=e.getOffsetAt(t),r=await this._worker(i);if(e.isDisposed())return;const g=await r.getRenameInfo(u,c,{allowRenameOfImportPath:!1});if(g.canRename===!1)return{edits:[],rejectReason:g.localizedErrorMessage};if(g.fileToRename!==void 0)throw new Error("Renaming files is not supported.");const d=await r.findRenameLocations(u,c,!1,!1,!1);if(!d||e.isDisposed())return;const p=[];for(const b of d){const h=this._libFiles.getOrCreateModel(b.fileName);if(h)p.push({resource:h.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(h,b.textSpan),text:s}});else throw new Error(`Unknown file ${b.fileName}.`)}return{edits:p}}},Y=class extends _{async provideInlayHints(e,t,s){const o=e.uri,i=o.toString(),u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),r=await this._worker(o);return e.isDisposed()?null:{hints:(await r.provideInlayHints(i,u,c)).map(p=>({...p,label:p.text,position:e.getPositionAt(p.position),kind:this._convertHintKind(p.kind)})),dispose:()=>{}}}_convertHintKind(e){switch(e){case"Parameter":return a.languages.InlayHintKind.Parameter;case"Type":return a.languages.InlayHintKind.Type;default:return a.languages.InlayHintKind.Type}}},D,F;function ie(e){F=P(e,"typescript")}function ne(e){D=P(e,"javascript")}function ae(){return new Promise((e,t)=>{if(!D)return t("JavaScript not registered!");e(D)})}function oe(){return new Promise((e,t)=>{if(!F)return t("TypeScript not registered!");e(F)})}function P(e,t){const s=[],o=new V(t,e),i=(...r)=>o.getLanguageServiceWorker(...r),u=new W(i);function c(){const{modeConfiguration:r}=e;Z(s),r.completionItems&&s.push(a.languages.registerCompletionItemProvider(t,new x(i))),r.signatureHelp&&s.push(a.languages.registerSignatureHelpProvider(t,new L(i))),r.hovers&&s.push(a.languages.registerHoverProvider(t,new B(i))),r.documentHighlights&&s.push(a.languages.registerDocumentHighlightProvider(t,new U(i))),r.definitions&&s.push(a.languages.registerDefinitionProvider(t,new $(u,i))),r.references&&s.push(a.languages.registerReferenceProvider(t,new z(u,i))),r.documentSymbols&&s.push(a.languages.registerDocumentSymbolProvider(t,new G(i))),r.rename&&s.push(a.languages.registerRenameProvider(t,new X(u,i))),r.documentRangeFormattingEdits&&s.push(a.languages.registerDocumentRangeFormattingEditProvider(t,new J(i))),r.onTypeFormattingEdits&&s.push(a.languages.registerOnTypeFormattingEditProvider(t,new Q(i))),r.codeActions&&s.push(a.languages.registerCodeActionProvider(t,new q(i))),r.inlayHints&&s.push(a.languages.registerInlayHintsProvider(t,new Y(i))),r.diagnostics&&s.push(new j(u,e,t,i))}return c(),i}function Z(e){for(;e.length;)e.pop().dispose()}export{_ as Adapter,q as CodeActionAdaptor,$ as DefinitionAdapter,j as DiagnosticsAdapter,U as DocumentHighlightAdapter,J as FormatAdapter,k as FormatHelper,Q as FormatOnTypeAdapter,Y as InlayHintsAdapter,l as Kind,W as LibFiles,G as OutlineAdapter,B as QuickInfoAdapter,z as ReferenceAdapter,X as RenameAdapter,L as SignatureHelpAdapter,x as SuggestAdapter,V as WorkerManager,C as flattenDiagnosticMessageText,ae as getJavaScriptWorker,oe as getTypeScriptWorker,ne as setupJavaScript,ie as setupTypeScript};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["(",")"],["[","]"],["<!--","-->"],["<",">"]],autoClosingPairs:[{open:"{# ",close:" #}"},{open:"{% ",close:" %}"},{open:"{{ ",close:" }}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},e={defaultToken:"",tokenPostfix:"",ignoreCase:!0,keywords:["apply","autoescape","block","deprecated","do","embed","extends","flush","for","from","if","import","include","macro","sandbox","set","use","verbatim","with","endapply","endautoescape","endblock","endembed","endfor","endif","endmacro","endsandbox","endset","endwith","true","false"],tokenizer:{root:[[/\s+/],[/{#/,"comment.twig","@commentState"],[/{%[-~]?/,"delimiter.twig","@blockState"],[/{{[-~]?/,"delimiter.twig","@variableState"],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter.html","tag.html","","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<{]+/]],commentState:[[/#}/,"comment.twig","@pop"],[/./,"comment.twig"]],blockState:[[/[-~]?%}/,"delimiter.twig","@pop"],[/\s+/],[/(verbatim)(\s*)([-~]?%})/,["keyword.twig","",{token:"delimiter.twig",next:"@rawDataState"}]],{include:"expression"}],rawDataState:[[/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,["delimiter.twig","","keyword.twig","",{token:"delimiter.twig",next:"@popall"}]],[/./,"string.twig"]],variableState:[[/[-~]?}}/,"delimiter.twig","@pop"],{include:"expression"}],stringState:[[/"/,"string.twig","@pop"],[/#{\s*/,"string.twig","@interpolationState"],[/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/,"string.twig"]],interpolationState:[[/}/,"string.twig","@pop"],{include:"expression"}],expression:[[/\s+/],[/\+|-|\/{1,2}|%|\*{1,2}/,"operators.twig"],[/(and|or|not|b-and|b-xor|b-or)(\s+)/,["operators.twig",""]],[/==|!=|<|>|>=|<=/,"operators.twig"],[/(starts with|ends with|matches)(\s+)/,["operators.twig",""]],[/(in)(\s+)/,["operators.twig",""]],[/(is)(\s+)/,["operators.twig",""]],[/\||~|:|\.{1,2}|\?{1,2}/,"operators.twig"],[/[^\W\d][\w]*/,{cases:{"@keywords":"keyword.twig","@default":"variable.twig"}}],[/\d+(\.\d+)?/,"number.twig"],[/\(|\)|\[|\]|{|}|,/,"delimiter.twig"],[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/,"string.twig"],[/"/,"string.twig","@stringState"],[/=>/,"operators.twig"],[/=/,"operators.twig"]],doctype:[[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name.html","@scriptAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter.html","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name.html","@styleAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter.html","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{t as conf,e as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as s}from"./monaco-CYdCgY0W.js";import"./uikit-Bx93IdUi.js";import"./other-DNLijWhD.js";import"./icons-CwVYGRlZ.js";var c=Object.defineProperty,a=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,l=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p(e))!g.call(t,n)&&n!==o&&c(t,n,{get:()=>e[n],enumerable:!(i=a(e,n))||i.enumerable});return t},d=(t,e,o)=>(l(t,e,"default"),o),r={};d(r,s);var f={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:r.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:r.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:r.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:r.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},k={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/#?[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{f as conf,k as language};
|